Skip to content

Commit b8efb02

Browse files
committed
tests/int/delete.bats: fix shellcheck warnings
Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 28204ce commit b8efb02

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/integration/delete.bats

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function teardown() {
6161

6262
local subsystems="memory freezer"
6363

64-
runc run -d --console-socket $CONSOLE_SOCKET test_busybox
64+
runc run -d --console-socket "$CONSOLE_SOCKET" test_busybox
6565
[ "$status" -eq 0 ]
6666

6767
testcontainer test_busybox running
@@ -88,9 +88,9 @@ EOF
8888

8989
for s in ${subsystems}; do
9090
name=CGROUP_${s^^}
91-
eval path=\$${name}/foo
92-
echo $path
93-
[ -d ${path} ] || fail "test failed to create memory sub-cgroup"
91+
eval path=\$"${name}"/foo
92+
# shellcheck disable=SC2154
93+
[ -d "${path}" ] || fail "test failed to create memory sub-cgroup ($path not found)"
9494
done
9595

9696
runc delete --force test_busybox

0 commit comments

Comments
 (0)