Permalink
Browse files

Use awk instead of grep to fix false negatives when testing

  • Loading branch information...
1 parent 449d8fa commit 006869577c9f5af9349ab2e4c3b6691199ec1e97 @jspahrsummers committed Nov 14, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −3 cibuild
View
7 cibuild
@@ -132,13 +132,14 @@ build_scheme ()
sdkflag="-sdk iphonesimulator"
fi
- run_xctool $sdkflag -scheme "$scheme" $action | grep -v 'Failed to query the list of test cases in the test bundle'
+ run_xctool $sdkflag -scheme "$scheme" $action | awk '{ print; } /Failed to query the list of test cases in the test bundle/ { exit 1; }'
- local grepstatus=$?
+ local awkstatus=$?
local result=${PIPESTATUS[0]}
- if [ "$grepstatus" -eq "0" ]
+ if [ "$awkstatus" -eq "1" ]
then
+ echo
echo "*** Mac application tests are currently buggy, so they have been skipped."
echo "*** See https://github.com/facebook/xctool/issues/243 for more information."
echo

0 comments on commit 0068695

Please sign in to comment.