[kde-linux/os-autoinst-distri-kdelinux] utils: Include port for localhost link in mock

Thomas Duckworth <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 5269f04b4a16b23779ad815b8ace38243fef582d by Thomas Duckworth.
Committed on 18/07/2026 at 13:22.
Pushed by tduck into branch 'master'.

Include port for localhost link in mock

This ensures people using the mock environment can actually access the
WebUI through the link in the log.

M  +6    -1    utils/run_job.sh

https://invent.kde.org/kde-linux/os-autoinst-distri-kdelinux/-/commit/5269f04b4a16b23779ad815b8ace38243fef582d

diff --git a/utils/run_job.sh b/utils/run_job.sh
index 0c3b35d..e0469c9 100755
--- a/utils/run_job.sh
+++ b/utils/run_job.sh
@@ -179,6 +179,11 @@ clean_pool() {
 
 poll_openqa_job() {
     local job_id="$1"
+    local openqa_web_host="$OPENQA_HOST_ADDR"
+
+    if [[ "$openqa_web_host" == "localhost" ]]; then
+        openqa_web_host+=":1080"
+    fi
 
     echo "[INFO] Job ${job_id} submitted. Polling for result..."
 
@@ -187,7 +192,7 @@ poll_openqa_job() {
     local scheduled_since=
 
     banner INFO "${TEST} test job is now running.
-View the running job - along with logs - here:  ${OPENQA_SCHEME:-https}://${OPENQA_HOST_ADDR}/tests/${job_id}"
+View the running job - along with logs - here:  ${OPENQA_SCHEME:-https}://${openqa_web_host}/tests/${job_id}"
 
     local result=
     local state=
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.