mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
tests/int: rm teardown_running_container_inroot
It is only used in a couple of places and is easy to replace with ROOT=xxx teardown_running_container. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -478,10 +478,6 @@ function teardown_running_container() {
|
|||||||
__runc delete -f "$1"
|
__runc delete -f "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
function teardown_running_container_inroot() {
|
|
||||||
ROOT="$2" __runc delete -f "$1"
|
|
||||||
}
|
|
||||||
|
|
||||||
function teardown_busybox() {
|
function teardown_busybox() {
|
||||||
cd "$INTEGRATION_ROOT"
|
cd "$INTEGRATION_ROOT"
|
||||||
teardown_recvtty
|
teardown_recvtty
|
||||||
|
|||||||
@@ -3,17 +3,14 @@
|
|||||||
load helpers
|
load helpers
|
||||||
|
|
||||||
function setup() {
|
function setup() {
|
||||||
teardown_running_container_inroot test_box1 "$HELLO_BUNDLE"
|
teardown
|
||||||
teardown_running_container_inroot test_box2 "$HELLO_BUNDLE"
|
|
||||||
teardown_running_container_inroot test_box3 "$HELLO_BUNDLE"
|
|
||||||
teardown_busybox
|
|
||||||
setup_busybox
|
setup_busybox
|
||||||
}
|
}
|
||||||
|
|
||||||
function teardown() {
|
function teardown() {
|
||||||
teardown_running_container_inroot test_box1 "$HELLO_BUNDLE"
|
ROOT="$HELLO_BUNDLE" teardown_running_container test_box1
|
||||||
teardown_running_container_inroot test_box2 "$HELLO_BUNDLE"
|
ROOT="$HELLO_BUNDLE" teardown_running_container test_box2
|
||||||
teardown_running_container_inroot test_box3 "$HELLO_BUNDLE"
|
ROOT="$HELLO_BUNDLE" teardown_running_container test_box3
|
||||||
teardown_busybox
|
teardown_busybox
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,13 +3,12 @@
|
|||||||
load helpers
|
load helpers
|
||||||
|
|
||||||
function setup() {
|
function setup() {
|
||||||
teardown_running_container_inroot test_dotbox "$HELLO_BUNDLE"
|
teardown
|
||||||
teardown_busybox
|
|
||||||
setup_busybox
|
setup_busybox
|
||||||
}
|
}
|
||||||
|
|
||||||
function teardown() {
|
function teardown() {
|
||||||
teardown_running_container_inroot test_dotbox "$HELLO_BUNDLE"
|
ROOT="$HELLO_BUNDLE" teardown_running_container test_dotbox
|
||||||
teardown_busybox
|
teardown_busybox
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user