Skip to contentSkip to conversation

lib/oeqa/selftest/lic-checksum cleanup

PATCH New Randy Witt 1 participant 3 messages Mar 16, 2015

lore
Share & tools
lore

Randy Witt

author
#0 lore raw

cover lib/oeqa/selftest/lic-checksum cleanup

The following changes since commit 7f30749fe026e9ceb75d73b89271145a45a60763:

oeqa/parselogs: Skip hda opcode errors (2015-03-12 12:50:24 +0000)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib rewitt/checksum_test

for you to fetch changes up to 21b26ec68cf0ebd9fec0fbf60cf2dc52a4bb79ba:

lib/oeqa/selftest/lic-checksum: Add INHIBIT_DEFAULT_DEPS (2015-03-16 10:50:05 -0700)

----------------------------------------------------------------
Randy Witt (2):
lib/oeqa/selftest/lic-checksum: Rename test_foo lib/oeqa/selftest/lic-checksum: Add INHIBIT_DEFAULT_DEPS

 meta/lib/oeqa/selftest/lic-checksum.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
author
#1 lore raw

PATCH 1/2 lib/oeqa/selftest/lic-checksum: Rename test_foo

test_foo is renamed to test_nonmatching_checksum. It was a mistake to submit it with the old name.

There was also some extra whitespace removed.

---
 meta/lib/oeqa/selftest/lic-checksum.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/lib/oeqa/selftest/lic-checksum.py +2 -2
index 0c1afa6..9a9f7b2 100644
@@ -6,10 +6,10 @@ from oeqa.utils.commands import bitbake
 from oeqa.utils import CommandError
 
 class LicenseTests(oeSelfTest):
-    
+
     # Verify that changing a license file that has an absolute path causes
     # the license qa to fail due to a mismatched md5sum.
-    def test_foo(self):
+    def test_nonmatching_checksum(self):
         bitbake_cmd = '-c configure emptytest'
         error_msg = 'ERROR: emptytest: The new md5 checksum is 8d777f385d3dfec8815d20f7496026dc'
 
Signature · 1 line
1.9.3
author
#2 lore raw

PATCH 2/2 lib/oeqa/selftest/lic-checksum: Add INHIBIT_DEFAULT_DEPS

In reply to Randy Witt

The test_nonmatching_checksum doesn't need the default dependencies, and they would just take extra time to generate.

---
 meta/lib/oeqa/selftest/lic-checksum.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/lib/oeqa/selftest/lic-checksum.py +2 -1
index 9a9f7b2..92fc3a8 100644
@@ -17,7 +17,8 @@ class LicenseTests(oeSelfTest):
         os.close(lic_file)
         self.track_for_cleanup(lic_path)
 
-        self.write_recipeinc('emptytest', 'LIC_FILES_CHKSUM = "file://%s;md5=d41d8cd98f00b204e9800998ecf8427e"' % lic_path)
+        self.write_recipeinc('emptytest', 'INHIBIT_DEFAULT_DEPS = "1"')
+        self.append_recipeinc('emptytest', 'LIC_FILES_CHKSUM = "file://%s;md5=d41d8cd98f00b204e9800998ecf8427e"' % lic_path)
         result = bitbake(bitbake_cmd)
 
         with open(lic_path, "w") as f:
Signature · 1 line
1.9.3