Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use return code from xcodebuild for test script

  • Loading branch information...
commit ebad0e47c000091481ae462e490f97116bb2f47d 1 parent 89cafe8
@sebreh sebreh authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 Scripts/run-tests
View
5 Scripts/run-tests
@@ -41,6 +41,5 @@ raw = opts['raw'] || false
cmd = "xcodebuild -scheme #{SCHEME} -workspace #{WORKSPACE} -destination \"#{destination}\" -sdk \"#{sdk}\" test"
cmd << "| xcpretty -c; exit ${PIPESTATUS[0]}" unless raw
-result = system(cmd)
-
-exit 1 unless result
+code = system(cmd)
+exit code if code != 0
Please sign in to comment.
Something went wrong with that request. Please try again.