[Piglit] [PATCH 1/2] xts: Avoid python exception when the XTS command itself failed.

Eric Anholt eric at anholt.net
Wed Aug 31 23:40:20 UTC 2016


---
 tests/xts.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/xts.py b/tests/xts.py
index c34b600883d8..9ff4eb99cc9d 100644
--- a/tests/xts.py
+++ b/tests/xts.py
@@ -144,6 +144,7 @@ class XTSTest(Test):  # pylint: disable=too-few-public-methods
                 os.remove(self.test_results_file)
         except IOError:
             self.result.err = "No results file found"
+            log = ""
 
         if self.result.returncode == 0:
             if re.search('FAIL', self.result.out) is not None:
-- 
2.9.3



More information about the Piglit mailing list