From 798e5eb5e7c96384f40567bf7426621ca8373e15 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Fri, 27 Nov 2015 21:50:11 +0100 Subject: tests: create all-zero gocryptfs.diriv in resetTmpDir() Tests were failing because this file was missing --- integration_tests/helpers.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'integration_tests/helpers.go') diff --git a/integration_tests/helpers.go b/integration_tests/helpers.go index 87e133b..3d6811f 100644 --- a/integration_tests/helpers.go +++ b/integration_tests/helpers.go @@ -38,6 +38,12 @@ func resetTmpDir() { fmt.Println(err) os.Exit(1) } + dirIV := make([]byte, 16) + err = ioutil.WriteFile(defaultCipherDir + "gocryptfs.diriv", dirIV, 0444) + if err != nil { + fmt.Println(err) + os.Exit(1) + } } // mount CIPHERDIR "c" on PLAINDIR "p" -- cgit v1.2.3