Skip to content

Commit f0a39ba

Browse files
stepnemgitster
authored andcommitted
t/README: fix multi-prerequisite example
With the broken quoting the test wouldn't even parse correctly, but there's also the '==' instead of POSIX '=' (of the shells I tested, busybox ash, bash and ksh (93 and OpenBSD) accept '==', dash and zsh do not), and 'print 2' from Python 2 days. (I assume the test failing due to 3 != 4 is intentional or immaterial.) Fixes: 93a5724 ("test-lib: Add support for multiple test prerequisites") Signed-off-by: Štěpán Němec <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 72fac03 commit f0a39ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ see test-lib-functions.sh for the full list and their options.
887887
rare case where your test depends on more than one:
888888

889889
test_expect_success PERL,PYTHON 'yo dawg' \
890-
' test $(perl -E 'print eval "1 +" . qx[python -c "print 2"]') == "4" '
890+
' test $(perl -E '\''print eval "1 +" . qx[python -c "print(2)"]'\'') = "4" '
891891

892892
- test_expect_failure [<prereq>] <message> <script>
893893

0 commit comments

Comments
 (0)