summaryrefslogtreecommitdiff
path: root/tests/test_helpers
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-08-19 08:30:19 +0200
committerJakob Unterwurzacher2021-08-19 08:34:49 +0200
commitd8b8232c3c4fa309e11567f6fb42c9642dd9d24c (patch)
treedb81279e54ef673ff672a5a2e54a89a4190567c9 /tests/test_helpers
parentf3d927e590c1e9fc3a0ef9402d9c83b972981232 (diff)
test_helpers: actually use global testParentDir variable
Typo inside doInit.
Diffstat (limited to 'tests/test_helpers')
-rw-r--r--tests/test_helpers/helpers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_helpers/helpers.go b/tests/test_helpers/helpers.go
index 2a0feb8..87dba0a 100644
--- a/tests/test_helpers/helpers.go
+++ b/tests/test_helpers/helpers.go
@@ -49,7 +49,7 @@ func doInit() {
X255 = string(bytes.Repeat([]byte("X"), 255))
MountInfo = make(map[string]mountInfo)
// Something like /tmp/gocryptfs-test-parent-1234
- testParentDir := fmt.Sprintf("%s/gocryptfs-test-parent-%d", os.TempDir(), os.Getuid())
+ testParentDir = fmt.Sprintf("%s/gocryptfs-test-parent-%d", os.TempDir(), os.Getuid())
os.MkdirAll(testParentDir, 0755)
if !isExt4(testParentDir) {
fmt.Printf("test_helpers: warning: testParentDir %q does not reside on ext4, we will miss failures caused by ino reuse\n", testParentDir)