summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAndré Draszik <git@andred.net>2019-10-16 10:18:24 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-10-19 23:18:33 +0100
commit568fd6ea47290051cf04b460b0424b7d459f6ffa (patch)
tree0a5bb4ee7084c73fa6ba94ede48ca06cce697423 /meta
parent34cce61ece6ee6f5dd20a4319cfa60416da37f76 (diff)
downloadpoky-568fd6ea47290051cf04b460b0424b7d459f6ffa.tar.gz
oeqa/runtime/opkg: skip install on read-only-rootfs
Images can have package management enabled, but be generally running as read-only. In this case, the test fails at the moment with various errors due to that. Use the new @skipIfFeature decorator to also skip this test in that case. (From OE-Core rev: 84640e2b4daf4cf22c5b0324c22332f59e4d51e3) Signed-off-by: André Draszik <git@andred.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/runtime/cases/opkg.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/cases/opkg.py b/meta/lib/oeqa/runtime/cases/opkg.py
index bb8b6d99d2..750706161b 100644
--- a/meta/lib/oeqa/runtime/cases/opkg.py
+++ b/meta/lib/oeqa/runtime/cases/opkg.py
@@ -5,7 +5,7 @@
5import os 5import os
6from oeqa.utils.httpserver import HTTPService 6from oeqa.utils.httpserver import HTTPService
7from oeqa.runtime.case import OERuntimeTestCase 7from oeqa.runtime.case import OERuntimeTestCase
8from oeqa.core.decorator.data import skipIfNotDataVar, skipIfNotFeature 8from oeqa.core.decorator.data import skipIfNotDataVar, skipIfNotFeature, skipIfFeature
9from oeqa.runtime.decorator.package import OEHasPackage 9from oeqa.runtime.decorator.package import OEHasPackage
10 10
11class OpkgTest(OERuntimeTestCase): 11class OpkgTest(OERuntimeTestCase):
@@ -45,6 +45,8 @@ class OpkgRepoTest(OpkgTest):
45 'Test requires package-management to be in IMAGE_FEATURES') 45 'Test requires package-management to be in IMAGE_FEATURES')
46 @skipIfNotDataVar('IMAGE_PKGTYPE', 'ipk', 46 @skipIfNotDataVar('IMAGE_PKGTYPE', 'ipk',
47 'IPK is not the primary package manager') 47 'IPK is not the primary package manager')
48 @skipIfFeature('read-only-rootfs',
49 'Test does not work with read-only-rootfs in IMAGE_FEATURES')
48 @OEHasPackage(['opkg']) 50 @OEHasPackage(['opkg'])
49 def test_opkg_install_from_repo(self): 51 def test_opkg_install_from_repo(self):
50 self.setup_source_config_for_package_install() 52 self.setup_source_config_for_package_install()