summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/lic_checksum.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-13 13:24:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-16 13:21:34 +0100
commit66b034800072da893c643f8ed7a645dd269e0fc4 (patch)
tree78332d4578cbcb75e858a98b62eb8f0d98bf17eb /meta/lib/oeqa/selftest/cases/lic_checksum.py
parent62865578bf324bd6c4113af1e67d458528a7ec39 (diff)
downloadpoky-66b034800072da893c643f8ed7a645dd269e0fc4.tar.gz
oqqa/selftest/lic_checksum: Avoid cache reparse
By having a consistent config for the test, a second reparse is avoided and the test runs slightly faster. (From OE-Core rev: a910d90dc18f9bc63142ccae2eeadc1feefc756b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/lic_checksum.py')
-rw-r--r--meta/lib/oeqa/selftest/cases/lic_checksum.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/lic_checksum.py b/meta/lib/oeqa/selftest/cases/lic_checksum.py
index 37407157c1..f992b3736e 100644
--- a/meta/lib/oeqa/selftest/cases/lic_checksum.py
+++ b/meta/lib/oeqa/selftest/cases/lic_checksum.py
@@ -19,6 +19,8 @@ class LicenseTests(OESelftestTestCase):
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_config("INHERIT_remove = \"report-error\"")
23
22 self.write_recipeinc('emptytest', """ 24 self.write_recipeinc('emptytest', """
23INHIBIT_DEFAULT_DEPS = "1" 25INHIBIT_DEFAULT_DEPS = "1"
24LIC_FILES_CHKSUM = "file://%s;md5=d41d8cd98f00b204e9800998ecf8427e" 26LIC_FILES_CHKSUM = "file://%s;md5=d41d8cd98f00b204e9800998ecf8427e"
@@ -29,7 +31,6 @@ SRC_URI = "file://%s;md5=d41d8cd98f00b204e9800998ecf8427e"
29 with open(lic_path, "w") as f: 31 with open(lic_path, "w") as f:
30 f.write("data") 32 f.write("data")
31 33
32 self.write_config("INHERIT_remove = \"report-error\"")
33 result = bitbake(bitbake_cmd, ignore_status=True) 34 result = bitbake(bitbake_cmd, ignore_status=True)
34 if error_msg not in result.output: 35 if error_msg not in result.output:
35 raise AssertionError(result.output) 36 raise AssertionError(result.output)