diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2018-06-01 13:03:02 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-02 11:41:25 +0100 |
commit | 351a829d15bf62688fc905199534cb026f84f44f (patch) | |
tree | d4212c1c27b5bfb73375cc883e25080a9bb81e4c | |
parent | 398aaf26aaeeaa5c911bd8f70114848257230527 (diff) | |
download | poky-351a829d15bf62688fc905199534cb026f84f44f.tar.gz |
oeqa/runtime/cases/dnf_runtime.py: skip test if PACKAGE_FEED_URIS is not set
This test is to test the behaviour of PACKAGE_FEED_URIS is correct or not.
If it's not even set, it makes no sense to do such test. So skip this
test if PACKAGE_FEED_URIS is not set.
(From OE-Core rev: 37e3d9d91cc0c8d0dac48463a888c692f4648f66)
(From OE-Core rev: d442e67e94d589ce744e3c440e51470e63132459)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py | 3 |
1 files changed, 3 insertions, 0 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..1aa7274701 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 @@ | |||
1 | from oeqa.core.decorator.depends import OETestDepends | 1 | from oeqa.core.decorator.depends import OETestDepends |
2 | from oeqa.runtime.cases.dnf import DnfTest | 2 | from oeqa.runtime.cases.dnf import DnfTest |
3 | from oeqa.utils.httpserver import HTTPService | 3 | from oeqa.utils.httpserver import HTTPService |
4 | from oeqa.core.decorator.data import skipIfDataVar | ||
4 | 5 | ||
5 | class DnfSelftest(DnfTest): | 6 | class DnfSelftest(DnfTest): |
6 | 7 | ||
@@ -18,6 +19,8 @@ class DnfSelftest(DnfTest): | |||
18 | cls.temp_dir.cleanup() | 19 | cls.temp_dir.cleanup() |
19 | 20 | ||
20 | @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) | 21 | @OETestDepends(['dnf.DnfBasicTest.test_dnf_help']) |
22 | @skipIfDataVar('PACKAGE_FEED_URIS', None, | ||
23 | 'Not suitable as PACKAGE_FEED_URIS is not set') | ||
21 | def test_verify_package_feeds(self): | 24 | def test_verify_package_feeds(self): |
22 | """ | 25 | """ |
23 | Summary: Check correct setting of PACKAGE_FEED_URIS var | 26 | Summary: Check correct setting of PACKAGE_FEED_URIS var |