Skip to content

Commit

Permalink
Using a more portable flag with grep to fix nightly (chapel-lang#23746)
Browse files Browse the repository at this point in the history
grep doesn't support the `-P` flag in the nightly tests and was causing
a failure in the unstable warning script test.
Using `-E` with `cut` instead

[Trivial, not reviewed]
  • Loading branch information
ShreyasKhandekar authored Oct 31, 2023
2 parents 9dace6a + 67c0104 commit ca78375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unstableAnonScript/scriptTest.prediff
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
outfile=$2
execargs=$5
# Search for --testType= in compargs and store the value next to it in test_type variable
test_type=$(echo "$execargs" | grep -oP '(?<=--testType=)[^ ]+')
test_type=$(echo "$execargs" | grep -oE '(--testType=)[^ ]+' | cut -d= -f2)

if [ "$test_type" == "help" ]; then
./unstableAnonScript -nl 1 -h > $outfile.tmp
Expand Down

0 comments on commit ca78375

Please sign in to comment.