]> gitweb.ps.run Git - ps-cgit/commitdiff
t0109: chain operations with &&
authorJohn Keeping <john@keeping.me.uk>
Wed, 10 Apr 2013 12:11:57 +0000 (13:11 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 10 Apr 2013 12:14:06 +0000 (14:14 +0200)
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>
tests/t0109-gitconfig.sh

index cdd570b02d6173c1da0b88314545bd25b5869e1d..f64e691b6ddabc08075684df4525bef335880998 100755 (executable)
@@ -18,7 +18,7 @@ test_expect_success 'no access to $HOME' '
                -E HOME="$non_existant_path" \
                -E CGIT_CONFIG="$PWD/cgitrc" \
                -E QUERY_STRING="url=foo/commit" \
-               -e access -f -o strace.out cgit
+               -e access -f -o strace.out cgit &&
        test_must_fail grep "$non_existant_path" strace.out
 '