fix shellcheck errors

Signed-off-by: Ashley Cui <acui@redhat.com>
This commit is contained in:
Ashley Cui 2020-08-18 12:52:58 -04:00
parent e3b6321b31
commit 749c9a9735
1 changed files with 6 additions and 5 deletions

View File

@ -60,9 +60,9 @@ function teardown() {
update_config '.linux.namespaces += [{"type": "cgroup"}]'
local subsystems="memory freezer"
# shellcheck disable=SC2034
for i in $(seq 1); do
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
@ -89,9 +89,10 @@ 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
echo "$path"
[ -d "${path}" ] || fail "test failed to create memory sub-cgroup"
done
runc delete --force test_busybox