Explorar o código

[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 %!s(int64=6) %!d(string=hai) anos
pai
achega
d34726f0af
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)