au_test_harness: drop use of signals.SignalModuleUsable
This is being deleted as obsolete in chromite.
BUG=None
TEST=CQ passes
Change-Id: I9fa37c538a8c377434ca86800b86c89791e3ad9c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crostestutils/+/1865549
Reviewed-by: Amin Hassani <ahassani@chromium.org>
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
diff --git a/au_test_harness/au_test.py b/au_test_harness/au_test.py
index 418ccc6..e9e03cd 100644
--- a/au_test_harness/au_test.py
+++ b/au_test_harness/au_test.py
@@ -35,11 +35,6 @@
self._old_sigint = None
self._old_sigterm = None
- # Verify that the signals modules is actually usable, and won't segfault
- # upon invocation of getsignal. See signals.SignalModuleUsable for the
- # details and upstream python bug.
- self._use_signals = signals.SignalModuleUsable()
-
@classmethod
def ProcessOptions(cls, options):
"""Processes options for the test suite and sets up the worker class.
@@ -73,8 +68,7 @@
# and the caller decides to terminate it (by sending a SIGTERM). The default
# action of SIGTERM is terminate, which leaves expensive resources leaked
# and/or local environment tainted.
- if self._use_signals:
- self._InstallHandlers()
+ self._InstallHandlers()
self.worker = self.worker_class(self.options, AUTest.test_results_root)
self.download_folder = os.path.join(os.path.realpath(os.path.curdir),
'latest_download')
@@ -83,8 +77,7 @@
"""Overrides unittest.TestCase.tearDown and called after every test."""
self.worker.CleanUp()
# Restore signal handlers.
- if self._use_signals:
- self._RestoreHandlers()
+ self._RestoreHandlers()
def SimpleTestVerify(self):
"""Test that only verifies the target image.