diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/sstatetests.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/lib/oeqa/selftest/cases/sstatetests.py b/meta/lib/oeqa/selftest/cases/sstatetests.py index 07a206824a..0b36027918 100644 --- a/meta/lib/oeqa/selftest/cases/sstatetests.py +++ b/meta/lib/oeqa/selftest/cases/sstatetests.py | |||
@@ -8,6 +8,8 @@ from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_test_layer | |||
8 | from oeqa.selftest.cases.sstate import SStateBase | 8 | from oeqa.selftest.cases.sstate import SStateBase |
9 | from oeqa.core.decorator.oeid import OETestID | 9 | from oeqa.core.decorator.oeid import OETestID |
10 | 10 | ||
11 | import bb.siggen | ||
12 | |||
11 | class SStateTests(SStateBase): | 13 | class SStateTests(SStateBase): |
12 | 14 | ||
13 | # Test sstate files creation and their location | 15 | # Test sstate files creation and their location |
@@ -469,9 +471,11 @@ http_proxy = "http://example.com/" | |||
469 | for k in files1.keys() | files2.keys(): | 471 | for k in files1.keys() | files2.keys(): |
470 | if k in files1 and k in files2: | 472 | if k in files1 and k in files2: |
471 | print("%s differs:" % k) | 473 | print("%s differs:" % k) |
472 | print(subprocess.check_output(("bitbake-diffsigs", | 474 | sigdatafile1 = self.topdir + "/tmp-sstatesamehash/stamps/" + k + "." + files1[k] |
473 | self.topdir + "/tmp-sstatesamehash/stamps/" + k + "." + files1[k], | 475 | sigdatafile2 = self.topdir + "/tmp-sstatesamehash2/stamps/" + k + "." + files2[k] |
474 | self.topdir + "/tmp-sstatesamehash2/stamps/" + k + "." + files2[k]))) | 476 | output = bb.siggen.compare_sigfiles(sigdatafile1, sigdatafile2) |
477 | if output: | ||
478 | print('\n'.join(output)) | ||
475 | elif k in files1 and k not in files2: | 479 | elif k in files1 and k not in files2: |
476 | print("%s in files1" % k) | 480 | print("%s in files1" % k) |
477 | elif k not in files1 and k in files2: | 481 | elif k not in files1 and k in files2: |