]> code.ossystems Code Review - openembedded-core.git/commitdiff
oqqa/selftest/lic_checksum: Avoid cache reparse
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Jul 2018 12:24:48 +0000 (13:24 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Jul 2018 15:34:30 +0000 (16:34 +0100)
By having a consistent config for the test, a second reparse is avoided
and the test runs slightly faster.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/lic_checksum.py

index 37407157c1e29173d7e3d8caba0be96bbb7483fc..f992b3736e4996169a71b8872d94a434edaccf91 100644 (file)
@@ -19,6 +19,8 @@ class LicenseTests(OESelftestTestCase):
         os.close(lic_file)
         self.track_for_cleanup(lic_path)
 
+        self.write_config("INHERIT_remove = \"report-error\"")
+
         self.write_recipeinc('emptytest', """
 INHIBIT_DEFAULT_DEPS = "1"
 LIC_FILES_CHKSUM = "file://%s;md5=d41d8cd98f00b204e9800998ecf8427e"
@@ -29,7 +31,6 @@ SRC_URI = "file://%s;md5=d41d8cd98f00b204e9800998ecf8427e"
         with open(lic_path, "w") as f:
             f.write("data")
 
-        self.write_config("INHERIT_remove = \"report-error\"")
         result = bitbake(bitbake_cmd, ignore_status=True)
         if error_msg not in result.output:
             raise AssertionError(result.output)