Browse Source

[Jenkins/Pal] Fix test_000_symbols test on debug SGX pipepine

Previously, test_000_symbols PAL regression test compared all lines in
stderr against a list of expected values (prefixed with "Dk...").
However, SGX PAL in debug mode outputs additional SGX-related
information in stderr which broke the test. This commit fixes this by
checking only lines which start with "Dk...".
Dmitrii Kuvaiskii 6 years ago
parent
commit
d34726f0af
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Pal/regression/test_pal.py

+ 1 - 1
Pal/regression/test_pal.py

@@ -198,7 +198,7 @@ class TC_02_Symbols(RegressionTestCase):
     def test_000_symbols(self):
         stdout, stderr = self.run_binary(['Symbols'])
         found_symbols = dict(line.split(' = ')
-            for line in stderr.strip().split('\n'))
+            for line in stderr.strip().split('\n') if line.startswith('Dk'))
         self.assertCountEqual(found_symbols, self.ALL_SYMBOLS)
         for k, v in found_symbols.items():
             v = ast.literal_eval(v)