summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/cases/ptest.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/runtime/cases/ptest.py')
-rw-r--r--meta/lib/oeqa/runtime/cases/ptest.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/cases/ptest.py b/meta/lib/oeqa/runtime/cases/ptest.py
index a2b6ffdfe1..f60a433d59 100644
--- a/meta/lib/oeqa/runtime/cases/ptest.py
+++ b/meta/lib/oeqa/runtime/cases/ptest.py
@@ -83,3 +83,11 @@ class PtestRunnerTest(OERuntimeTestCase):
83 # Remove the old link to create a new one 83 # Remove the old link to create a new one
84 os.remove(ptest_log_dir_link) 84 os.remove(ptest_log_dir_link)
85 os.symlink(os.path.basename(ptest_log_dir), ptest_log_dir_link) 85 os.symlink(os.path.basename(ptest_log_dir), ptest_log_dir_link)
86
87 failed_tests = {}
88 for section in parse_result.result_dict:
89 failed_testcases = [ test for test, result in parse_result.result_dict[section] if result == 'fail' ]
90 if failed_testcases:
91 failed_tests[section] = failed_testcases
92
93 self.assertFalse(failed_tests, msg = "Failed ptests: %s" %(str(failed_tests)))