test_helpers: actually use global testParentDir variable

Typo inside doInit.
This commit is contained in:
Jakob Unterwurzacher 2021-08-19 08:30:19 +02:00
parent f3d927e590
commit d8b8232c3c
1 changed files with 1 additions and 1 deletions

View File

@ -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)