Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by
h4. Actual Behavior & Analysis
While working on other bash scripts, I noticed a small bug in {{.travis.yml}}.  It checks for success with:

grep '0 failures, 0 errors.' test-out.txt


But this will match any failure count that ends in 0, to illustrate problem:

$ echo "10 failures, 0 errors." | grep '0 failures, 0 errors.'
10 failures, 0 errors.


h4. Fix
Match to start of line with {{^}}, to illustrate fix:

$ echo "10 failures, 0 errors." | grep '^0 failures, 0 errors.'
$ echo $?
1
$ echo "0 failures, 0 errors." | grep '^0 failures, 0 errors.'
0 failures, 0 errors.

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-3114 (reported by lread)
...