diff options
author | Carl Raiden Worley <carl.worley@10gen.com> | 2020-02-03 10:40:58 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-04 14:49:40 +0000 |
commit | 51af2309a693a71e8842e5f04330df45b9b2538e (patch) | |
tree | aa4a37238f8020deb1e72262c67eb5f4f7810c86 /buildscripts | |
parent | a347a421837981f55399e19a68ddc0a6127e93c4 (diff) | |
download | mongo-51af2309a693a71e8842e5f04330df45b9b2538e.tar.gz |
SERVER-45928 Use correct interface import for cpp_libfuzzer_test.py
Diffstat (limited to 'buildscripts')
-rw-r--r-- | buildscripts/resmokelib/core/jasper_process.py | 2 | ||||
-rw-r--r-- | buildscripts/resmokelib/testing/testcases/cpp_libfuzzer_test.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/buildscripts/resmokelib/core/jasper_process.py b/buildscripts/resmokelib/core/jasper_process.py index e6839760776..d2a54c70b92 100644 --- a/buildscripts/resmokelib/core/jasper_process.py +++ b/buildscripts/resmokelib/core/jasper_process.py @@ -53,7 +53,7 @@ class Process(_process.Process): def stop(self, mode=None): """Terminate the process.""" - should_kill = mode == fixture_interface.TerminationMode.KILL + should_kill = mode == fixture_interface.TeardownMode.KILL signal = self.jasper_pb2.Signals.Value("TERMINATE") if sys.platform == "win32": if not should_kill: diff --git a/buildscripts/resmokelib/testing/testcases/cpp_libfuzzer_test.py b/buildscripts/resmokelib/testing/testcases/cpp_libfuzzer_test.py index d3b9bec01c1..02fd9ea1ff5 100644 --- a/buildscripts/resmokelib/testing/testcases/cpp_libfuzzer_test.py +++ b/buildscripts/resmokelib/testing/testcases/cpp_libfuzzer_test.py @@ -4,6 +4,7 @@ import subprocess import os import datetime +import buildscripts.resmokelib.testing.fixtures.interface as fixture_interface from . import interface from ... import core from ... import utils @@ -42,7 +43,7 @@ class CPPLibfuzzerTestCase(interface.ProcessTestCase): self.return_code = process.wait(self.DEFAULT_TIMEOUT.total_seconds()) except subprocess.TimeoutExpired: # If the test timeout, then no errors were detected. Thus, the return code should be 0. - process.stop(mode=interface.TerminationMode.KILL) + process.stop(mode=fixture_interface.TeardownMode.KILL) process.wait() self.logger.info("%s timed out. No errors were found.", self.short_description()) self.return_code = 0 |