Skip to content
Browse files

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

  • Loading branch information...
1 parent d941527 commit 850896f52848c596703cbbf5c85dfcb531e3fc89 @kreuter kreuter committed Jun 11, 2010
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")

0 comments on commit 850896f

Please sign in to comment.
Something went wrong with that request. Please try again.