diff options
Diffstat (limited to 'meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py')
-rw-r--r-- | meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py b/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py index 81c50ed97b..d2f0f88f7d 100644 --- a/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py +++ b/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py @@ -1,6 +1,7 @@ from oeqa.core.decorator.depends import OETestDepends from oeqa.runtime.cases.dnf import DnfTest from oeqa.utils.httpserver import HTTPService +from oeqa.core.decorator.data import skipIfDataVar class DnfSelftest(DnfTest): @@ -9,7 +10,8 @@ class DnfSelftest(DnfTest): import tempfile cls.temp_dir = tempfile.TemporaryDirectory(prefix="oeqa-remotefeeds-") cls.repo_server = HTTPService(os.path.join(cls.tc.td['WORKDIR'], 'oe-rootfs-repo'), - cls.tc.target.server_ip) + '0.0.0.0', port=cls.tc.target.server_port, + logger=cls.tc.logger) cls.repo_server.start() @classmethod @@ -18,13 +20,15 @@ class DnfSelftest(DnfTest): cls.temp_dir.cleanup() @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) + @skipIfDataVar('PACKAGE_FEED_URIS', None, + 'Not suitable as PACKAGE_FEED_URIS is not set') def test_verify_package_feeds(self): """ Summary: Check correct setting of PACKAGE_FEED_URIS var Expected: 1. Feeds were correctly set for dnf 2. Update recovers packages from host's repo Author: Humberto Ibarra <humberto.ibarra.lopez@intel.com> - Author: Alexander Kanavin <alexander.kanavin@intel.com> + Author: Alexander Kanavin <alex.kanavin@gmail.com> """ # When we created an image, we had to supply fake ip and port # for the feeds. Now we can patch the real ones into the config file. |