summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/selftest/lic-checksum.py9
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) 23INHIBIT_DEFAULT_DEPS = "1"
24LIC_FILES_CHKSUM = "file://%s;md5=d41d8cd98f00b204e9800998ecf8427e"
25SRC_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: