summaryrefslogtreecommitdiffstats
path: root/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py
diff options
context:
space:
mode:
authorMikko Rapeli <mikko.rapeli@linaro.org>2023-08-23 09:10:20 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-12 12:37:56 +0100
commit33d28b72655d28c8624aef12fd895aa37dd29c4c (patch)
tree1d79440bfa5a9243f0d784afb34b5eebc3e2e710 /meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py
parent8af6f66bb41e9e6aef8af8e0e7fad4385e21fdf3 (diff)
downloadpoky-33d28b72655d28c8624aef12fd895aa37dd29c4c.tar.gz
oeqa dnf_runtime.py: fix HTTP server IP address and port
Use correct HTTPService parameters like apt.py when setting up the repo server. These work with qemu tun and slirp networking. Fixes test failure with slirp networking when executing testimage.bbclass selftests "oe-selftest -r runtime_test.TestImage". (From OE-Core rev: 764424df2f4b6bf0e89fb20b4253a7601468f70d) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py')
-rw-r--r--meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py b/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py
index 64a3502370..d2f0f88f7d 100644
--- a/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py
+++ b/meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py
@@ -10,7 +10,8 @@ class DnfSelftest(DnfTest):
10 import tempfile 10 import tempfile
11 cls.temp_dir = tempfile.TemporaryDirectory(prefix="oeqa-remotefeeds-") 11 cls.temp_dir = tempfile.TemporaryDirectory(prefix="oeqa-remotefeeds-")
12 cls.repo_server = HTTPService(os.path.join(cls.tc.td['WORKDIR'], 'oe-rootfs-repo'), 12 cls.repo_server = HTTPService(os.path.join(cls.tc.td['WORKDIR'], 'oe-rootfs-repo'),
13 cls.tc.target.server_ip) 13 '0.0.0.0', port=cls.tc.target.server_port,
14 logger=cls.tc.logger)
14 cls.repo_server.start() 15 cls.repo_server.start()
15 16
16 @classmethod 17 @classmethod