mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
tests/int: alt fix for shellcheck SC2034
Instead of ignoring it, use a throwaway variable _ (yes, just like in Go). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -61,8 +61,7 @@ function simple_cr() {
|
||||
|
||||
testcontainer test_busybox running
|
||||
|
||||
# shellcheck disable=SC2034
|
||||
for i in $(seq 2); do
|
||||
for _ in $(seq 2); do
|
||||
# checkpoint the running container
|
||||
runc --criu "$CRIU" checkpoint --work-path ./work-dir test_busybox
|
||||
grep -B 5 Error ./work-dir/dump.log || true
|
||||
@@ -243,8 +242,7 @@ function simple_cr() {
|
||||
|
||||
testcontainer test_busybox running
|
||||
|
||||
# shellcheck disable=SC2034
|
||||
for i in $(seq 2); do
|
||||
for _ in $(seq 2); do
|
||||
# checkpoint the running container; this automatically tells CRIU to
|
||||
# handle the network namespace defined in config.json as an external
|
||||
runc --criu "$CRIU" checkpoint --work-path ./work-dir test_busybox
|
||||
|
||||
Reference in New Issue
Block a user