diff options
-rw-r--r-- | scripts/lib/compatlayer/cases/common.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/scripts/lib/compatlayer/cases/common.py b/scripts/lib/compatlayer/cases/common.py index b91da9bb14..a4c2a51aba 100644 --- a/scripts/lib/compatlayer/cases/common.py +++ b/scripts/lib/compatlayer/cases/common.py @@ -75,5 +75,17 @@ class CommonCompatLayer(OECompatLayerTestCase): msg.append('Layer %s changed %d signatures, initial differences (first hash without, second with layer):' % (self.tc.layer['name'], len(sig_diff))) for diff in sorted(sig_diff_filtered): + recipe, taskname = diff[0].rsplit(':', 1) + cmd = 'bitbake-diffsigs --task %s %s --signature %s %s' % \ + (recipe, taskname, diff[1], diff[2]) msg.append(' %s: %s -> %s' % diff) - self.assertTrue(False, '\n'.join(msg)) + msg.append(' %s' % cmd) + try: + output = check_command('Determining signature difference failed.', + cmd).decode('utf-8') + except RuntimeError as error: + output = str(error) + if output: + msg.extend([' ' + line for line in output.splitlines()]) + msg.append('') + self.fail('\n'.join(msg)) |