Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make smoke.py exit nonzero if tests fail. SERVER-253

  • Loading branch information...
commit 850896f52848c596703cbbf5c85dfcb531e3fc89 1 parent d941527
@kreuter kreuter authored
Showing with 5 additions and 0 deletions.
  1. +1 −0  buildscripts/smoke.py
  2. +4 −0 jstests/_fail.js
View
1  buildscripts/smoke.py
@@ -203,6 +203,7 @@ def report():
print "The following tests failed (with exit code):"
for loser in losers:
print "%s\t%d" % (loser, losers[loser])
+ exit (1 if losers else 0)
def expandSuites(suites):
globstr = None
View
4 jstests/_fail.js
@@ -0,0 +1,4 @@
+// For testing the test runner.
+assert.eq(1, 2, "fail1")
+
+print("you should not see this")
Please sign in to comment.
Something went wrong with that request. Please try again.