SERVER-45928 Use correct interface import for cpp_libfuzzer_test.py

This commit is contained in:
Carl Raiden Worley
2020-02-03 10:40:58 -05:00
committed by Evergreen Agent
parent a347a42183
commit 51af2309a6
2 changed files with 3 additions and 2 deletions

View File

@@ -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