diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-11 10:27:07 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-11 10:33:43 +0100 |
commit | 5052bf92e40d8e0764a11e897f06d3d9c7c065e9 (patch) | |
tree | b7026c5bdc66258a6a04530328235482f9e11cd2 /meta/lib | |
parent | 832029356f64da093472f55ce0447a6052400985 (diff) | |
download | poky-5052bf92e40d8e0764a11e897f06d3d9c7c065e9.tar.gz |
oeqa/lic-checksum: Update after recent LIC_FILES_CHKSUM changes
The check now runs at populate_lic time so change this from configure. We
also need to set a SRC_URI so that the check triggers.
(From OE-Core rev: a5970809a2f01dbd152684266e2a3d946d896620)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/selftest/lic-checksum.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/lib/oeqa/selftest/lic-checksum.py b/meta/lib/oeqa/selftest/lic-checksum.py index cac6d84452..df44c97e80 100644 --- a/meta/lib/oeqa/selftest/lic-checksum.py +++ b/meta/lib/oeqa/selftest/lic-checksum.py | |||
@@ -12,15 +12,18 @@ class LicenseTests(oeSelfTest): | |||
12 | # the license qa to fail due to a mismatched md5sum. | 12 | # the license qa to fail due to a mismatched md5sum. |
13 | @testcase(1197) | 13 | @testcase(1197) |
14 | def test_nonmatching_checksum(self): | 14 | def test_nonmatching_checksum(self): |
15 | bitbake_cmd = '-c configure emptytest' | 15 | bitbake_cmd = '-c populate_lic emptytest' |
16 | error_msg = 'emptytest: The new md5 checksum is 8d777f385d3dfec8815d20f7496026dc' | 16 | error_msg = 'emptytest: The new md5 checksum is 8d777f385d3dfec8815d20f7496026dc' |
17 | 17 | ||
18 | lic_file, lic_path = tempfile.mkstemp() | 18 | lic_file, lic_path = tempfile.mkstemp() |
19 | os.close(lic_file) | 19 | os.close(lic_file) |
20 | self.track_for_cleanup(lic_path) | 20 | self.track_for_cleanup(lic_path) |
21 | 21 | ||
22 | self.write_recipeinc('emptytest', 'INHIBIT_DEFAULT_DEPS = "1"') | 22 | self.write_recipeinc('emptytest', """ |
23 | self.append_recipeinc('emptytest', 'LIC_FILES_CHKSUM = "file://%s;md5=d41d8cd98f00b204e9800998ecf8427e"' % lic_path) | 23 | INHIBIT_DEFAULT_DEPS = "1" |
24 | LIC_FILES_CHKSUM = "file://%s;md5=d41d8cd98f00b204e9800998ecf8427e" | ||
25 | SRC_URI = "file://%s;md5=d41d8cd98f00b204e9800998ecf8427e" | ||
26 | """ % (lic_path, lic_path)) | ||
24 | result = bitbake(bitbake_cmd) | 27 | result = bitbake(bitbake_cmd) |
25 | 28 | ||
26 | with open(lic_path, "w") as f: | 29 | with open(lic_path, "w") as f: |