]> code.ossystems Code Review - openembedded-core.git/commitdiff
selftest/package: Fix hardlink test when using sstate
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 7 Aug 2018 11:01:36 +0000 (11:01 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 7 Aug 2018 11:12:55 +0000 (12:12 +0100)
The build target won't cause the package task to run if things were already
built and in sstate. Ensure we run the package task explicitly to ensure
the test works as intended.

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

index 1e171b5ebefe0ea3b493b3c6eef41b463a7b1e2f..f288fcafdb42c39cfd1ff6f10443a4a3d851826a 100644 (file)
@@ -89,7 +89,7 @@ class VersionOrdering(OESelftestTestCase):
 class PackageTests(OESelftestTestCase):
     # Verify that a recipe which sets up hardlink files has those preserved into split packages
     def test_preserve_hardlinks(self):
-        result = bitbake("selftest-hardlink")
+        result = bitbake("selftest-hardlink -c package")
 
         dest = get_bb_var('PKGDEST', 'selftest-hardlink')
         bindir = get_bb_var('bindir', 'selftest-hardlink')