diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-24 10:47:35 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-15 23:09:23 +0000 |
commit | 10108d0ebf3fbb29fb555b7db7176dce7ffff0cf (patch) | |
tree | 772a4b3b7d66f9959b241e4c31a1cb8959068a72 /meta | |
parent | ba90fb0f3d2aca9f99982d58215b113336ace298 (diff) | |
download | poky-10108d0ebf3fbb29fb555b7db7176dce7ffff0cf.tar.gz |
oeqa/selftest/prservice: Improve debug output for failure
We keep seeing this failure on the autobuilder but the output amounts
to "False is not True". Improve the debug message on the chance it may
make the issue clearer.
(From OE-Core rev: 68d3766c37e4b3a1b49dc27226b2513e3b0db9a9)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d03f4cf19c2cc96e9d942252a451521dfec42ebc)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/prservice.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/prservice.py b/meta/lib/oeqa/selftest/cases/prservice.py index 578b2b4dd9..fdc1e40058 100644 --- a/meta/lib/oeqa/selftest/cases/prservice.py +++ b/meta/lib/oeqa/selftest/cases/prservice.py | |||
@@ -75,7 +75,7 @@ class BitbakePrTests(OESelftestTestCase): | |||
75 | exported_db_path = os.path.join(self.builddir, 'export.inc') | 75 | exported_db_path = os.path.join(self.builddir, 'export.inc') |
76 | export_result = runCmd("bitbake-prserv-tool export %s" % exported_db_path, ignore_status=True) | 76 | export_result = runCmd("bitbake-prserv-tool export %s" % exported_db_path, ignore_status=True) |
77 | self.assertEqual(export_result.status, 0, msg="PR Service database export failed: %s" % export_result.output) | 77 | self.assertEqual(export_result.status, 0, msg="PR Service database export failed: %s" % export_result.output) |
78 | self.assertTrue(os.path.exists(exported_db_path)) | 78 | self.assertTrue(os.path.exists(exported_db_path), msg="%s didn't exist, tool output %s" % (exported_db_path, export_result.output)) |
79 | 79 | ||
80 | if replace_current_db: | 80 | if replace_current_db: |
81 | current_db_path = os.path.join(get_bb_var('PERSISTENT_DIR'), 'prserv.sqlite3') | 81 | current_db_path = os.path.join(get_bb_var('PERSISTENT_DIR'), 'prserv.sqlite3') |