projects/guix·blob python-team · refs

27 lines · 1.0 KiB

1Suppress a warning from grep which causes tests to fail.
2
3Taken from upstream pull request:
4
5 https://github.com/aureliojargas/clitest/pull/54
6
7diff --git a/test/inline-match-egrep.sh b/test/inline-match-egrep.sh
8--- a/test/inline-match-egrep.sh
9+++ b/test/inline-match-egrep.sh
10@@ -42,7 +42,7 @@ $ printf ' \t \t\t \n' #=> --egrep ^ $
11 # egrep regexes. You'll need to test in your system if that's the
12 # case. I recommend using a literal tab to avoid problems.
13
14-$ printf 'may\tfail' #=> --egrep ^may\tfail$
15+$ printf 'may\tfail' #=> --egrep ^may\\tfail$
16 $ printf 'may\tfail' #=> --egrep ^may[\t]fail$
17 $ printf 'will\tmatch' #=> --egrep ^will match$
18
19@@ -51,7 +51,7 @@ $ printf 'will\tmatch' #=> --egrep ^will match$
20 # These tests will fail:
21
22 $ printf 'will\nfail' #=> --egrep will.*fail
23-$ printf 'will\nfail' #=> --egrep will\nfail
24+$ printf 'will\nfail' #=> --egrep will\\nfail
25
26 # If one line of a multiline results matches, the test is OK
27