]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
oeqa dnf_runtime.py: fix HTTP server IP address and port
authorMikko Rapeli <mikko.rapeli@linaro.org>
Wed, 23 Aug 2023 06:10:20 +0000 (09:10 +0300)
committerSteve Sakoman <steve@sakoman.com>
Fri, 13 Oct 2023 02:23:08 +0000 (16:23 -1000)
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".

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
(cherry picked from commit 764424df2f4b6bf0e89fb20b4253a7601468f70d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py

index 64a35023703fd065feb461acb4c014b659cd05b3..d2f0f88f7d1d445c624782fff60b568d47187b05 100644 (file)
@@ -10,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