summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/errors.py
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2015-05-08 14:20:43 -0400
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2015-05-08 14:49:42 -0400
commit424314f65e2e0bd9af8f2962260014d1adc7011b (patch)
treead435d7ad8484bd2000a45bcfa54162256c27e7e /buildscripts/resmokelib/errors.py
parentc7ce2e2c56c5d39530456fbbb0554517afe9ab14 (diff)
downloadmongo-424314f65e2e0bd9af8f2962260014d1adc7011b.tar.gz
SERVER-1424 Rewrite smoke.py.
Split out the passthrough tests into separate suites. The MongoDB deployment is started up by resmoke.py so that we can record the success/failure of each individual test in MCI. Added support for parallel execution of tests by dispatching to multiple MongoDB deployments. Added support for grouping different kinds of tests (e.g. C++ unit tests, dbtests, and jstests) so that they can be run together. This allows for customizability in specifying what tests to execute when changes are made to a particular part of the code.
Diffstat (limited to 'buildscripts/resmokelib/errors.py')
-rw-r--r--buildscripts/resmokelib/errors.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/buildscripts/resmokelib/errors.py b/buildscripts/resmokelib/errors.py
new file mode 100644
index 00000000000..8243b4ce157
--- /dev/null
+++ b/buildscripts/resmokelib/errors.py
@@ -0,0 +1,35 @@
+"""
+Exceptions raised by resmoke.py.
+"""
+
+
+class ResmokeError(Exception):
+ """
+ Base class for all resmoke.py exceptions.
+ """
+ pass
+
+
+class StopExecution(ResmokeError):
+ """
+ Exception that is raised when resmoke.py should stop executing tests
+ if failing fast is enabled.
+ """
+ pass
+
+
+class TestFailure(ResmokeError):
+ """
+ Exception that is raised by a hook in the after_test method if it
+ determines the the previous test should be marked as a failure.
+ """
+ pass
+
+
+class ServerFailure(TestFailure):
+ """
+ Exception that is raised by a hook in the after_test method if it
+ detects that the fixture did not exit cleanly and should be marked
+ as a failure.
+ """
+ pass