Skip to content

Commit

Permalink
Int test for opencontainers#3551
Browse files Browse the repository at this point in the history
v2: use daemon-reexec
v3: require root to reload systemd
v4: use exec -t

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
  • Loading branch information
kolyshkin committed Aug 17, 2022
1 parent b54084f commit 68b62dd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/integration/dev.bats
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,19 @@ function teardown() {
runc exec test_allow_block sh -c 'fdisk -l '"$device"''
[ "$status" -eq 0 ]
}

# https://github.com/opencontainers/runc/issues/3551
@test "runc exec vs systemctl daemon-reload" {
requires systemd root

runc run -d --console-socket "$CONSOLE_SOCKET" test_exec
[ "$status" -eq 0 ]

runc exec test_exec true
[ "$status" -eq 0 ]

systemctl daemon-reexec

runc exec test_exec true
[ "$status" -eq 0 ]
}

0 comments on commit 68b62dd

Please sign in to comment.