소스 검색

selftest/package: Fix hardlink test when using sstate

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.

(From OE-Core rev: be20eb4f4ad77d9444028ca9632b74d5866d96b8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie 6 년 전
부모
커밋
fc77dc63fe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      meta/lib/oeqa/selftest/cases/package.py

+ 1 - 1
meta/lib/oeqa/selftest/cases/package.py

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