From b4c7267b0e9e282948cf7c52e1f83d70512aac8c Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Mon, 14 Jun 2021 20:40:51 +0000 Subject: [PATCH] zdtm: allow ignore taint via environment variable With this change tainted kernels can be ignored with setting ZDTM_IGNORE_TAINT=1. This is just to simplify the CI script to not require to change every call of zdtm. Setting the variable once should be enough. Signed-off-by: Adrian Reber --- test/zdtm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/zdtm.py b/test/zdtm.py index 41609a9b2..9fae6e2c8 100755 --- a/test/zdtm.py +++ b/test/zdtm.py @@ -1938,7 +1938,7 @@ class Launcher: self.__taint = taintfd.read() if int(self.__taint, 0) != 0: print("The kernel is tainted: %r" % self.__taint) - if not opts["ignore_taint"]: + if not opts["ignore_taint"] and os.getenv("ZDTM_IGNORE_TAINT") != '1': raise Exception("The kernel is tainted: %r" % self.__taint) def __show_progress(self, msg):