mirror of
https://github.com/containers/podman.git
synced 2025-06-22 18:08:11 +08:00
Merge pull request #18755 from edsantiago/dont_bg_run_podman
systests: fix improper backgrounding of run_podman
This commit is contained in:
@ -16,7 +16,7 @@ SOCKET_FILE="$UNIT_DIR/$SERVICE_NAME.socket"
|
||||
@test "podman system service - tcp CORS" {
|
||||
skip_if_remote "system service tests are meaningless over remote"
|
||||
PORT=$(random_free_port 63000-64999)
|
||||
run_podman system service --cors="*" tcp:$SERVICE_TCP_HOST:$PORT -t 20 &
|
||||
$PODMAN system service --cors="*" tcp:$SERVICE_TCP_HOST:$PORT -t 20 &
|
||||
podman_pid="$!"
|
||||
sleep 5s
|
||||
run curl -s --max-time 10 -vvv $SERVICE_TCP_HOST:$PORT/_ping 2>&1
|
||||
@ -28,7 +28,7 @@ SOCKET_FILE="$UNIT_DIR/$SERVICE_NAME.socket"
|
||||
@test "podman system service - tcp without CORS" {
|
||||
skip_if_remote "system service tests are meaningless over remote"
|
||||
PORT=$(random_free_port 63000-64999)
|
||||
run_podman system service tcp:$SERVICE_TCP_HOST:$PORT -t 20 &
|
||||
$PODMAN system service tcp:$SERVICE_TCP_HOST:$PORT -t 20 &
|
||||
podman_pid="$!"
|
||||
sleep 5s
|
||||
(curl -s --max-time 10 -vvv $SERVICE_TCP_HOST:$PORT/_ping 2>&1 | grep -Eq "Access-Control-Allow-Origin:") && false || true
|
||||
|
Reference in New Issue
Block a user