Skip to content

Commit

Permalink
Merge pull request #3542 from kolyshkin/ci-fix-vs-azsec
Browse files Browse the repository at this point in the history
ci: fix delete.bats for GHA
  • Loading branch information
hqhq authored Dec 16, 2022
2 parents e7461c8 + 15677e7 commit 7c14308
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/delete.bats
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function teardown() {

testcontainer testbusyboxdelete running
# Ensure the find statement used later is correct.
output=$(find /sys/fs/cgroup -name testbusyboxdelete -o -name \*-testbusyboxdelete.scope)
output=$(find /sys/fs/cgroup -name testbusyboxdelete -o -name \*-testbusyboxdelete.scope 2>/dev/null || true)
if [ -z "$output" ]; then
fail "expected cgroup not found"
fi
Expand All @@ -38,7 +38,7 @@ function teardown() {
runc state testbusyboxdelete
[ "$status" -ne 0 ]

output=$(find /sys/fs/cgroup -name testbusyboxdelete -o -name \*-testbusyboxdelete.scope)
output=$(find /sys/fs/cgroup -name testbusyboxdelete -o -name \*-testbusyboxdelete.scope 2>/dev/null || true)
[ "$output" = "" ] || fail "cgroup not cleaned up correctly: $output"
}

Expand Down Expand Up @@ -118,7 +118,7 @@ EOF
runc state test_busybox
[ "$status" -ne 0 ]

output=$(find /sys/fs/cgroup -wholename '*testbusyboxdelete*' -type d)
output=$(find /sys/fs/cgroup -wholename '*testbusyboxdelete*' -type d 2>/dev/null || true)
[ "$output" = "" ] || fail "cgroup not cleaned up correctly: $output"
}

Expand Down

0 comments on commit 7c14308

Please sign in to comment.