From 1c54fcd04bbf274dd5d4300e433bdcb1bb32e1ce Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 11 Jul 2016 20:31:36 +0200 Subject: tests: use unmount wrapper in ResetTmpDir This should make it work on OSX. Also, split unmount into two functions. Depending on what you want, * UnmountErr returns the resulting error * UnmountPanic panics if the error was not nil --- tests/matrix/matrix_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/matrix') diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go index b73a0cf..2bd5b9f 100644 --- a/tests/matrix/matrix_test.go +++ b/tests/matrix/matrix_test.go @@ -45,7 +45,7 @@ func TestMain(m *testing.M) { opts = append(opts, fmt.Sprintf("-plaintextnames=%v", plaintextnames)) test_helpers.MountOrExit(test_helpers.DefaultCipherDir, test_helpers.DefaultPlainDir, opts...) r := m.Run() - test_helpers.Unmount(test_helpers.DefaultPlainDir) + test_helpers.UnmountPanic(test_helpers.DefaultPlainDir) if r != 0 { os.Exit(r) } -- cgit v1.2.3