mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
908b7076e9
With some grep|awk help, found a few places where the containers supposed to be removed in teardown() weren't. To find container names: grep -E '^[[:space:]]*\<_*_*runc\>.*\<(create|run|restore)\>' Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
23 lines
462 B
Bash
23 lines
462 B
Bash
#!/usr/bin/env bats
|
|
|
|
load helpers
|
|
|
|
function setup() {
|
|
teardown_busybox
|
|
setup_busybox
|
|
}
|
|
|
|
function teardown() {
|
|
teardown_busybox
|
|
teardown_running_container test_bind_mount
|
|
}
|
|
|
|
@test "runc run [bind mount]" {
|
|
update_config ' .mounts += [{"source": ".", "destination": "/tmp/bind", "options": ["bind"]}]
|
|
| .process.args |= ["ls", "/tmp/bind/config.json"]'
|
|
|
|
runc run test_bind_mount
|
|
[ "$status" -eq 0 ]
|
|
[[ "${lines[0]}" == *'/tmp/bind/config.json'* ]]
|
|
}
|