Pārlūkot izejas kodu

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>
Mikko Rapeli 1 gadu atpakaļ
vecāks
revīzija
33d28b7265
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py

+ 2 - 1
meta-selftest/lib/oeqa/runtime/cases/dnf_runtime.py

@@ -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