summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Samuels <richard.l.samuels@gmail.com>2022-02-15 15:15:14 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-02-15 17:12:01 +0000
commit4931ea397a8119b28309c4fbe3604079e840717b (patch)
tree1330665d27522193e2226091691f2de50509bf2a
parente4544716efb8892741cfc6f79e81d802a894581b (diff)
downloadmongo-4931ea397a8119b28309c4fbe3604079e840717b.tar.gz
SERVER-63646 _raise_if_unsafe_exit uses wrong return_code
-rw-r--r--buildscripts/resmokelib/testing/testcases/jstest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildscripts/resmokelib/testing/testcases/jstest.py b/buildscripts/resmokelib/testing/testcases/jstest.py
index 78c98e642da..670d6f32876 100644
--- a/buildscripts/resmokelib/testing/testcases/jstest.py
+++ b/buildscripts/resmokelib/testing/testcases/jstest.py
@@ -270,7 +270,7 @@ class JSTestCase(interface.TestCase, interface.UndoDBUtilsMixin):
"""Determine if a return code represents and unsafe exit."""
# 252 and 253 may be returned in failed test executions.
# (i.e. -4 and -3 in mongo_main.cpp)
- if self.return_code not in (252, 253, 0):
+ if return_code not in (252, 253, 0):
self.propagate_error = errors.UnsafeExitError(
f"Mongo shell exited with code {return_code} while running jstest {self.basename()}."
" Further test execution may be unsafe.")