test_helpers: mark MountOrFatal as a Helper()

This commit is contained in:
Jakob Unterwurzacher 2020-09-09 11:15:54 +02:00
parent 570e9baadf
commit 7c0363dee5

View File

@ -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))