summaryrefslogtreecommitdiff
path: root/tests/test_helpers/mount_unmount.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-03-20 10:33:34 +0100
committerJakob Unterwurzacher2021-03-20 10:33:34 +0100
commit255a71c9179b9ad32587b20c41f81dc0b8cc3f44 (patch)
treec44357ac4c26defcf192e556a9a2f7c917ec2d0e /tests/test_helpers/mount_unmount.go
parentf6036c429a35dff83bd01b3e867262cf7e8468ef (diff)
tests: MountOrFatal creates mnt dir itself
Allows to drop a few Mkdir()s.
Diffstat (limited to 'tests/test_helpers/mount_unmount.go')
-rw-r--r--tests/test_helpers/mount_unmount.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_helpers/mount_unmount.go b/tests/test_helpers/mount_unmount.go
index 70b403f..8ff2564 100644
--- a/tests/test_helpers/mount_unmount.go
+++ b/tests/test_helpers/mount_unmount.go
@@ -113,6 +113,7 @@ func MountOrExit(c string, p string, extraArgs ...string) {
}
// MountOrFatal calls Mount() and calls t.Fatal() on failure.
+// Creates plaindir `p` if it does not exist.
//
// Contrary to InitFS(), you MUST passt "-extpass=echo test" (or another way for
// getting the master key) explicitly.