Skip to content

Commit

Permalink
CI: parallelize 450-interactive system tests
Browse files Browse the repository at this point in the history
This has been running reliably for weeks in #23275

Signed-off-by: Ed Santiago <santiago@redhat.com>
Signed-off-by: luckyevildev <stanislav.petrov@apliteni.com>
  • Loading branch information
edsantiago authored and luckyevildev committed Oct 30, 2024
1 parent 0962a1e commit da7fff6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/system/450-interactive.bats
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@

load helpers

# bats file_tags=ci:parallel

###############################################################################
# BEGIN setup/teardown

# Each test runs with its own PTY, managed by socat.
PODMAN_TEST_PTY=$(mktemp -u --tmpdir=${BATS_TMPDIR:-/tmp} podman_pty.XXXXXX)
PODMAN_DUMMY=$(mktemp -u --tmpdir=${BATS_TMPDIR:-/tmp} podman_dummy.XXXXXX)
PODMAN_SOCAT_PID=

function setup() {
basic_setup

# Each test runs with its own PTY, managed by socat.
PODMAN_TEST_PTY=$PODMAN_TMPDIR/podman_pty
PODMAN_DUMMY=$PODMAN_TMPDIR/podman_dummy
PODMAN_SOCAT_PID=

# Create a pty. Run under 'timeout' because BATS reaps child processes
# and if we exit before killing socat, bats will hang forever.
timeout 10 socat \
Expand Down

0 comments on commit da7fff6

Please sign in to comment.