Skip to content

Commit

Permalink
check that runc-test_busybox.scope is removed
Browse files Browse the repository at this point in the history
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
  • Loading branch information
kolyshkin committed Mar 22, 2023
1 parent c8200ba commit 2c2b89b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ task:
HOME: /root
CIRRUS_WORKING_DIR: /home/runc
GO_VERSION: "1.19"
BATS_VERSION: "v1.3.0"
BATS_VERSION: "v1.9.0"
RPMS: gcc git iptables jq glibc-static libseccomp-devel make criu fuse-sshfs
# yamllint disable rule:key-duplicates
matrix:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG GO_VERSION=1.19
ARG BATS_VERSION=v1.3.0
ARG BATS_VERSION=v1.9.0
ARG LIBSECCOMP_VERSION=2.5.4

FROM golang:${GO_VERSION}-bullseye
Expand Down
9 changes: 9 additions & 0 deletions tests/integration/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,15 @@ function teardown_bundle() {
__runc delete -f "$ct"
done
rm -rf "$ROOT"
# Check that systemd unit is removed.
if [ -v RUNC_USE_SYSTEMD ]; then
run systemctl status runc-test_busybox.scope
echo "$output"
[ "$status" -eq 4 ] # "no such unit"
if ls /run/systemd/transient/runc-test_busybox.scope.d; then
fail "should not have test_busybox left"
fi
fi
remove_parent
}

Expand Down

0 comments on commit 2c2b89b

Please sign in to comment.