diff --git a/Dockerfile b/Dockerfile index 567e5547..2350cf1e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ RUN apt-get update && apt-get install -y \ curl \ gawk \ iptables \ + jq \ pkg-config \ libaio-dev \ libcap-dev \ diff --git a/tests/integration/create.bats b/tests/integration/create.bats index 20ed328e..cac2e6de 100644 --- a/tests/integration/create.bats +++ b/tests/integration/create.bats @@ -51,7 +51,7 @@ function teardown() { run cat pid.txt [ "$status" -eq 0 ] - [[ ${lines[0]} =~ [0-9]+ ]] + [[ ${lines[0]} == $(__runc state test_busybox | jq '.pid') ]] # start the command runc start test_busybox diff --git a/tests/integration/exec.bats b/tests/integration/exec.bats index b5da5770..bdebb861 100644 --- a/tests/integration/exec.bats +++ b/tests/integration/exec.bats @@ -42,6 +42,7 @@ function teardown() { run cat pid.txt [ "$status" -eq 0 ] [[ ${lines[0]} =~ [0-9]+ ]] + [[ ${lines[0]} != $(__runc state test_busybox | jq '.pid') ]] } @test "runc exec ls -la" { diff --git a/tests/integration/start_detached.bats b/tests/integration/start_detached.bats index 52225007..48d99957 100644 --- a/tests/integration/start_detached.bats +++ b/tests/integration/start_detached.bats @@ -53,5 +53,5 @@ function teardown() { run cat pid.txt [ "$status" -eq 0 ] - [[ ${lines[0]} =~ [0-9]+ ]] + [[ ${lines[0]} == $(__runc state test_busybox | jq '.pid') ]] }