diff options
| author | Jakob Unterwurzacher | 2018-08-15 13:11:34 +0200 | 
|---|---|---|
| committer | Jakob Unterwurzacher | 2018-08-15 13:12:13 +0200 | 
| commit | 5acfbc1b2ffbd156ca7a1f2cc09084a518f1d58e (patch) | |
| tree | 8c7ec9ed5a7f70945285143f7ed493c21a79351e /tests | |
| parent | 7a02f71fc2fc8fc104ad1538f417d1e93e73cf11 (diff) | |
main: add -e as an alias for -exclude
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/reverse/exclude_test.go | 9 | 
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/reverse/exclude_test.go b/tests/reverse/exclude_test.go index a64b3da..aaecd65 100644 --- a/tests/reverse/exclude_test.go +++ b/tests/reverse/exclude_test.go @@ -44,7 +44,7 @@ func ctlsockEncryptPath(t *testing.T, sock string, path string) string {  	return response.Result  } -func TestExclude(t *testing.T) { +func testExclude(t *testing.T, flag string) {  	pOk := []string{  		"file2",  		"dir1/file1", @@ -74,7 +74,7 @@ func TestExclude(t *testing.T) {  	sock := mnt + ".sock"  	cliArgs := []string{"-reverse", "-extpass", "echo test", "-ctlsock", sock}  	for _, v := range pExclude { -		cliArgs = append(cliArgs, "-exclude", v) +		cliArgs = append(cliArgs, flag, v)  	}  	if plaintextnames {  		cliArgs = append(cliArgs, "-config", "exclude_test_fs/.gocryptfs.reverse.conf.plaintextnames") @@ -102,3 +102,8 @@ func TestExclude(t *testing.T) {  		}  	}  } + +func TestExclude(t *testing.T) { +	testExclude(t, "-exclude") +	testExclude(t, "-e") +}  | 
