[oe-commits] [openembedded-core] 04/48: HACK: signing: Add extra test debug

git at git.openembedded.org git at git.openembedded.org
Sun Dec 29 09:27:53 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 1bf75f45fed5896a96c7c956f3ab3206a815dabc
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Dec 4 20:20:52 2019 +0000

    HACK: signing: Add extra test debug
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oeqa/selftest/cases/signing.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/selftest/cases/signing.py b/meta/lib/oeqa/selftest/cases/signing.py
index 93b15ae..b65f3de 100644
--- a/meta/lib/oeqa/selftest/cases/signing.py
+++ b/meta/lib/oeqa/selftest/cases/signing.py
@@ -221,4 +221,10 @@ class LockedSignatures(OESelftestTestCase):
         patt = r'The %s:do_package sig is computed to be \S+, but the sig is locked to \S+ in SIGGEN_LOCKEDSIGS\S+' % test_recipe
         found_warn = re.search(patt, ret.output)
 
-        self.assertIsNotNone(found_warn, "Didn't find the expected warning message. Output: %s" % ret.output)
+        extradebug = ""
+        if not found_warn:
+            extradebug = bitbake(test_recipe + " -e").output
+            extradebug += bitbake(test_recipe + " -S none").output
+            extradebug += runCmd('ls -la tmp/stamps/*/ed/*').output
+
+        self.assertIsNotNone(found_warn, "Didn't find the expected warning message. Output: %s, Extra debug: %s" % (ret.output, extradebug))

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list