summaryrefslogtreecommitdiff
path: root/tests/plaintextnames/plaintextnames_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plaintextnames/plaintextnames_test.go')
-rw-r--r--tests/plaintextnames/plaintextnames_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/plaintextnames/plaintextnames_test.go b/tests/plaintextnames/plaintextnames_test.go
index 7e7db7c..6c6d272 100644
--- a/tests/plaintextnames/plaintextnames_test.go
+++ b/tests/plaintextnames/plaintextnames_test.go
@@ -20,7 +20,9 @@ func TestMain(m *testing.M) {
cDir = test_helpers.InitFS(nil, "-plaintextnames")
pDir = cDir + ".mnt"
test_helpers.MountOrExit(cDir, pDir, "-extpass", "echo test")
- os.Exit(m.Run())
+ r := m.Run()
+ test_helpers.Unmount(pDir)
+ os.Exit(r)
}
// Only the PlaintextNames feature flag should be set