mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
tests/int/checkpoint: fix using run twice
In our bats tests, runc itself is a wrapper which calls bats run helper, so using "run runc" is wrong as it results in calling run helper twice. Fixes:8d180e965Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> (cherry picked from commitad72eab6c7) Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -156,7 +156,7 @@ function simple_cr_with_netdevice() {
|
||||
[ "$status" -eq 0 ]
|
||||
|
||||
testcontainer test_busybox_netdevice running
|
||||
run runc exec test_busybox_netdevice ip address show dev dummy0
|
||||
runc exec test_busybox_netdevice ip address show dev dummy0
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" == *" $global_ip "* ]]
|
||||
[[ "$output" == *"ether $mac_address "* ]]
|
||||
@@ -172,7 +172,7 @@ function simple_cr_with_netdevice() {
|
||||
[ "$status" -eq 0 ]
|
||||
|
||||
testcontainer test_busybox_netdevice running
|
||||
run runc exec test_busybox_netdevice ip address show dev dummy0
|
||||
runc exec test_busybox_netdevice ip address show dev dummy0
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" == *" $global_ip "* ]]
|
||||
[[ "$output" == *"ether $mac_address "* ]]
|
||||
|
||||
Reference in New Issue
Block a user