]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 Sep 2023 11:37:53 +0000 (12:37 +0100)
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>
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