tests/int/delete.bats: fix shellcheck warnings
@@ -61,7 +61,7 @@ function teardown() {
local subsystems="memory freezer"
- runc run -d --console-socket $CONSOLE_SOCKET test_busybox
+ runc run -d --console-socket "$CONSOLE_SOCKET" test_busybox
[ "$status" -eq 0 ]
testcontainer test_busybox running
@@ -88,9 +88,9 @@ EOF
for s in ${subsystems}; do
name=CGROUP_${s^^}
- eval path=\$${name}/foo
- echo $path
- [ -d ${path} ] || fail "test failed to create memory sub-cgroup"
+ eval path=\$"${name}"/foo
+ # shellcheck disable=SC2154
+ [ -d "${path}" ] || fail "test failed to create memory sub-cgroup ($path not found)"
done
runc delete --force test_busybox
