diff options
| -rw-r--r-- | meta/conf/distro/include/no-gplv3.inc | 2 | ||||
| -rw-r--r-- | meta/conf/machine/include/qemu.inc | 3 | ||||
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/incompatible_lic.py | 3 | ||||
| -rw-r--r-- | meta/lib/oeqa/utils/postactions.py | 3 |
4 files changed, 10 insertions, 1 deletions
diff --git a/meta/conf/distro/include/no-gplv3.inc b/meta/conf/distro/include/no-gplv3.inc index b3eb936d94..705e05319a 100644 --- a/meta/conf/distro/include/no-gplv3.inc +++ b/meta/conf/distro/include/no-gplv3.inc | |||
| @@ -28,3 +28,5 @@ CORE_IMAGE_BASE_INSTALL:remove:pn-core-image-weston = "matchbox-terminal" | |||
| 28 | # Some python-tests use bash outside of ptest | 28 | # Some python-tests use bash outside of ptest |
| 29 | RDEPENDS:${PN}-tests:remove:class-target:pn-python3 = "${MLPREFIX}bash" | 29 | RDEPENDS:${PN}-tests:remove:class-target:pn-python3 = "${MLPREFIX}bash" |
| 30 | INSANE_SKIP:${PN}-tests:pn-python3 = "file-rdeps" | 30 | INSANE_SKIP:${PN}-tests:pn-python3 = "file-rdeps" |
| 31 | |||
| 32 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS:remove = "tar" | ||
diff --git a/meta/conf/machine/include/qemu.inc b/meta/conf/machine/include/qemu.inc index bb7aec7675..d7392d4762 100644 --- a/meta/conf/machine/include/qemu.inc +++ b/meta/conf/machine/include/qemu.inc | |||
| @@ -28,3 +28,6 @@ KERNEL_FEATURES:append:pn-linux-yocto = " features/nfsd/nfsd-enable.scc" | |||
| 28 | KERNEL_FEATURES:append:pn-linux-yocto-rt = " features/nfsd/nfsd-enable.scc" | 28 | KERNEL_FEATURES:append:pn-linux-yocto-rt = " features/nfsd/nfsd-enable.scc" |
| 29 | 29 | ||
| 30 | IMAGE_CLASSES += "qemuboot" | 30 | IMAGE_CLASSES += "qemuboot" |
| 31 | |||
| 32 | # Use gnu tar so we can handle sparse files in testimage debug archives | ||
| 33 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "tar" | ||
diff --git a/meta/lib/oeqa/selftest/cases/incompatible_lic.py b/meta/lib/oeqa/selftest/cases/incompatible_lic.py index be5484bca4..93884f5731 100644 --- a/meta/lib/oeqa/selftest/cases/incompatible_lic.py +++ b/meta/lib/oeqa/selftest/cases/incompatible_lic.py | |||
| @@ -102,6 +102,7 @@ class IncompatibleLicensePerImageTests(OESelftestTestCase): | |||
| 102 | return """ | 102 | return """ |
| 103 | IMAGE_INSTALL:append = " bash" | 103 | IMAGE_INSTALL:append = " bash" |
| 104 | INCOMPATIBLE_LICENSE:pn-core-image-minimal = "GPL-3.0* LGPL-3.0*" | 104 | INCOMPATIBLE_LICENSE:pn-core-image-minimal = "GPL-3.0* LGPL-3.0*" |
| 105 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS:remove = "tar" | ||
| 105 | """ | 106 | """ |
| 106 | 107 | ||
| 107 | def test_bash_default(self): | 108 | def test_bash_default(self): |
| @@ -136,6 +137,8 @@ class NoGPL3InImagesTests(OESelftestTestCase): | |||
| 136 | def test_core_image_minimal(self): | 137 | def test_core_image_minimal(self): |
| 137 | self.write_config(""" | 138 | self.write_config(""" |
| 138 | INCOMPATIBLE_LICENSE:pn-core-image-minimal = "GPL-3.0* LGPL-3.0*" | 139 | INCOMPATIBLE_LICENSE:pn-core-image-minimal = "GPL-3.0* LGPL-3.0*" |
| 140 | |||
| 141 | require conf/distro/include/no-gplv3.inc | ||
| 139 | """) | 142 | """) |
| 140 | bitbake('core-image-minimal') | 143 | bitbake('core-image-minimal') |
| 141 | 144 | ||
diff --git a/meta/lib/oeqa/utils/postactions.py b/meta/lib/oeqa/utils/postactions.py index 8f787838b9..c69481db6c 100644 --- a/meta/lib/oeqa/utils/postactions.py +++ b/meta/lib/oeqa/utils/postactions.py | |||
| @@ -64,7 +64,8 @@ def list_and_fetch_failed_tests_artifacts(d, tc, artifacts_list, outputdir): | |||
| 64 | bb.warn("Could not load artifacts list, skip artifacts retrieval") | 64 | bb.warn("Could not load artifacts list, skip artifacts retrieval") |
| 65 | return | 65 | return |
| 66 | try: | 66 | try: |
| 67 | cmd = "tar zcf - " + " ".join(artifacts_list) | 67 | # We need gnu tar for sparse files, not busybox |
| 68 | cmd = "tar --sparse -zcf - " + " ".join(artifacts_list) | ||
| 68 | (status, output) = tc.target.run(cmd, raw = True) | 69 | (status, output) = tc.target.run(cmd, raw = True) |
| 69 | if status != 0 or not output: | 70 | if status != 0 or not output: |
| 70 | raise Exception("Error while fetching compressed artifacts") | 71 | raise Exception("Error while fetching compressed artifacts") |
