From 8c89e2da0ca3a2c901bfe067904b623a4da6f6a7 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 8 Oct 2016 19:22:59 +0200 Subject: tests: invert ResetTmpDir argument As reverse also does not want a diriv file, the "plaintextNames" argument became a misnomer. --- tests/test_helpers/helpers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_helpers') diff --git a/tests/test_helpers/helpers.go b/tests/test_helpers/helpers.go index c38bbf2..479da69 100644 --- a/tests/test_helpers/helpers.go +++ b/tests/test_helpers/helpers.go @@ -48,7 +48,7 @@ func init() { // |-- DefaultPlainDir // *-- DefaultCipherDir // *-- gocryptfs.diriv -func ResetTmpDir(plaintextNames bool) { +func ResetTmpDir(createDirIV bool) { // Try to unmount and delete everything entries, err := ioutil.ReadDir(TmpDir) if err == nil { @@ -83,7 +83,7 @@ func ResetTmpDir(plaintextNames bool) { if err != nil { panic(err) } - if !plaintextNames { + if createDirIV { err = nametransform.WriteDirIV(DefaultCipherDir) if err != nil { panic(err) -- cgit v1.2.3