From 8f2723b387fd3a4f575109a42d7c91059ebfe3fa Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 31 Mar 2019 14:33:02 +0200 Subject: Allow "nofail" for /etc/fstab use --- tests/cli/cli_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/cli/cli_test.go b/tests/cli/cli_test.go index 438ba16..58ffe44 100644 --- a/tests/cli/cli_test.go +++ b/tests/cli/cli_test.go @@ -285,6 +285,14 @@ func TestNonempty(t *testing.T) { test_helpers.UnmountPanic(mnt) } +// -nofail should be ignored and the mount should succeed +func TestNofail(t *testing.T) { + dir := test_helpers.InitFS(t) + mnt := dir + ".mnt" + test_helpers.MountOrFatal(t, dir, mnt, "-nofail", "-extpass=echo test") + defer test_helpers.UnmountPanic(mnt) +} + // Test "mountpoint shadows cipherdir" handling func TestShadows(t *testing.T) { mnt := test_helpers.InitFS(t) -- cgit v1.2.3