diff options
author | John Keeping <john@keeping.me.uk> | 2013-04-10 21:11:57 (JST) |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-04-10 21:14:06 (JST) |
commit | 880223dc845e8b502e753425b889cbb70b73478e (patch) | |
tree | 4a3fcce3c15da5875cd548c2a80e8f1934939c2e /tests | |
parent | 8d8e84e72a24f474a6659ca04d0906723b2ac975 (diff) | |
download | cgit-880223dc845e8b502e753425b889cbb70b73478e.zip cgit-880223dc845e8b502e753425b889cbb70b73478e.tar.gz |
t0109: chain operations with &&
Without '&&' between operations, we will not detect if strace or cgit
exit with an error status, which would cause a false positive test
status in this case.
Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/t0109-gitconfig.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/t0109-gitconfig.sh b/tests/t0109-gitconfig.sh index cdd570b..f64e691 100755 --- a/tests/t0109-gitconfig.sh +++ b/tests/t0109-gitconfig.sh | |||
@@ -18,7 +18,7 @@ test_expect_success 'no access to $HOME' ' | |||
18 | -E HOME="$non_existant_path" \ | 18 | -E HOME="$non_existant_path" \ |
19 | -E CGIT_CONFIG="$PWD/cgitrc" \ | 19 | -E CGIT_CONFIG="$PWD/cgitrc" \ |
20 | -E QUERY_STRING="url=foo/commit" \ | 20 | -E QUERY_STRING="url=foo/commit" \ |
21 | -e access -f -o strace.out cgit | 21 | -e access -f -o strace.out cgit && |
22 | test_must_fail grep "$non_existant_path" strace.out | 22 | test_must_fail grep "$non_existant_path" strace.out |
23 | ' | 23 | ' |
24 | 24 | ||