diff options
author | Dan Crosta <dcrosta@10gen.com> | 2012-02-02 15:56:01 -0500 |
---|---|---|
committer | Dan Crosta <dcrosta@10gen.com> | 2012-02-02 15:56:01 -0500 |
commit | 4939423b952bebc002f252e973e740bdc259cf41 (patch) | |
tree | 21fee2426b29b7c821aeecc0291ce30bd95cad52 | |
parent | a85185d5d04891618862f81b1b40991f76e2fdbc (diff) | |
download | mongo-4939423b952bebc002f252e973e740bdc259cf41.tar.gz |
fail a build if cleanbb.py cannot be run
-rwxr-xr-x | buildscripts/smoke.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/buildscripts/smoke.py b/buildscripts/smoke.py index 37fa655059c..04c4924c00f 100755 --- a/buildscripts/smoke.py +++ b/buildscripts/smoke.py @@ -158,7 +158,10 @@ class mongod(object): argv = ["python", "buildscripts/cleanbb.py", '--nokill', dir_name] else: argv = ["python", "buildscripts/cleanbb.py", dir_name] - call(argv) + returncode = call(argv) + if returncode != 0: + raise Exception('could not run %s (return code %d)' % (' '.join(argv), returncode)) + utils.ensureDir(dir_name) argv = [mongod_executable, "--port", str(self.port), "--dbpath", dir_name] if self.kwargs.get('small_oplog'): |