From: Gyorgy Sarvari Date: Sun, 26 Oct 2025 20:41:07 +0000 (+0100) Subject: tests: shell: fix typo in vmap_timeout test script X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b39ba950325bba7b00da57684c99e9466522bb07;p=thirdparty%2Fnftables.git tests: shell: fix typo in vmap_timeout test script While executing the test suite from tests/shell folder, the following error is displayed many times: tests/shell/testcases/maps/vmap_timeout: line 48: [: : integer expected Looking at the script, a non-existing variable (expires) is tested instead of the existing one (expire). Reproduction: tests/shell/run-tests.sh -v Fixes: db80037c0279 ("tests: shell: extend vmap test with updates") Signed-off-by: Gyorgy Sarvari Signed-off-by: Florian Westphal --- diff --git a/tests/shell/testcases/maps/vmap_timeout b/tests/shell/testcases/maps/vmap_timeout index 8ac7e8e7..55d1c1b9 100755 --- a/tests/shell/testcases/maps/vmap_timeout +++ b/tests/shell/testcases/maps/vmap_timeout @@ -45,7 +45,7 @@ for i in $(seq 1 100) ; do expire=$((RANDOM%utimeout)) expire_str="" - if [ "$expires" -gt 0 ]; then + if [ "$expire" -gt 0 ]; then expire_str="expires ${expire}s" fi