about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2013-04-10 13:11:57 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2013-04-10 14:14:06 +0200
commit880223dc845e8b502e753425b889cbb70b73478e (patch)
tree4a3fcce3c15da5875cd548c2a80e8f1934939c2e
parentcgit.c: Do not restore unset environment variables (diff)
downloadcgit-pink-880223dc845e8b502e753425b889cbb70b73478e.tar.gz
cgit-pink-880223dc845e8b502e753425b889cbb70b73478e.zip
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>
-rwxr-xr-xtests/t0109-gitconfig.sh2
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' '
 		-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
 '
 
60e8ac43f8614ce&follow=1'>Move /opt/local back, cheat port select to use system manJune McEnroe 2020-09-12Move /opt/local behind /usr againJune McEnroe 2020-09-12Enable toc in cgit renderings of man pagesJune McEnroe 2020-09-11Install mandoc on macOSJune McEnroe 2020-09-11Rewrite install script yet againJune McEnroe 2020-09-11Remove NetBSD from install scriptJune McEnroe 2020-09-11Use MacPorts rather than pkgsrcJune McEnroe 2020-09-11Add debian VM name to sshJune McEnroe 2020-09-11Add influencer tweetJune McEnroe 2020-09-10Add The Kingdom of GodsJune McEnroe 2020-09-07Add SunglassesJune McEnroe 2020-09-06Add Between the BreathsJune McEnroe 2020-09-04Open /dev/tty in nudgeJune McEnroe 2020-09-04Add nudgeJune McEnroe 2020-09-03Build fbclock with -lzJune McEnroe 2020-08-29Add tweets from retweetsJune McEnroe