aboutsummaryrefslogtreecommitdiff
path: root/tests/test_helpers
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-09-09 11:15:54 +0200
committerJakob Unterwurzacher2020-09-09 11:15:54 +0200
commit7c0363dee5966c2cf8751cc449d19a3b5422242a (patch)
tree3c92ba817478de6d71d68810bcf04f082745ec97 /tests/test_helpers
parent570e9baadf18a9e65812a8d2839d7d6b9950e935 (diff)
test_helpers: mark MountOrFatal as a Helper()
Diffstat (limited to 'tests/test_helpers')
-rw-r--r--tests/test_helpers/mount_unmount.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_helpers/mount_unmount.go b/tests/test_helpers/mount_unmount.go
index 76db41c..70b403f 100644
--- a/tests/test_helpers/mount_unmount.go
+++ b/tests/test_helpers/mount_unmount.go
@@ -117,6 +117,8 @@ func MountOrExit(c string, p string, extraArgs ...string) {
// Contrary to InitFS(), you MUST passt "-extpass=echo test" (or another way for
// getting the master key) explicitly.
func MountOrFatal(t *testing.T, c string, p string, extraArgs ...string) {
+ t.Helper()
+
err := Mount(c, p, true, extraArgs...)
if err != nil {
t.Fatal(fmt.Errorf("mount failed: %v", err))