From ec2fdc19cf9358ae7ba09c528a5807b6b0760f9b Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 11 Aug 2018 23:26:49 +0200 Subject: reverse mode: add --exclude option https://github.com/rfjakob/gocryptfs/issues/235 --- tests/cli/cli_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/cli/cli_test.go') 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) +} -- cgit v1.2.3