summaryrefslogtreecommitdiff
path: root/tests/cli/cli_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cli/cli_test.go')
-rw-r--r--tests/cli/cli_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/cli/cli_test.go b/tests/cli/cli_test.go
index 5b78359..3b53181 100644
--- a/tests/cli/cli_test.go
+++ b/tests/cli/cli_test.go
@@ -484,3 +484,14 @@ func TestMissingOArg(t *testing.T) {
exitcodes.Usage, exitCode)
}
}
+
+// -exclude must return an error in forward mode
+func TestExcludeForward(t *testing.T) {
+ dir := test_helpers.InitFS(t)
+ mnt := dir + ".mnt"
+ err := test_helpers.Mount(dir, mnt, false, "-extpass", "echo test", "-exclude", "foo")
+ if err == nil {
+ t.Errorf("-exclude in forward mode should fail")
+ }
+ t.Log(err)
+}