summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-03-31 14:33:02 +0200
committerJakob Unterwurzacher2019-03-31 14:33:02 +0200
commit8f2723b387fd3a4f575109a42d7c91059ebfe3fa (patch)
tree91cd8795366ac60557b9c563d9e0a327d22ebb41 /tests
parentec17445b996e7a2dc3b753963ea329881430e27b (diff)
Allow "nofail" for /etc/fstab use
Diffstat (limited to 'tests')
-rw-r--r--tests/cli/cli_test.go8
1 files changed, 8 insertions, 0 deletions
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)