]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: do not mix string and array
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Fri, 10 Apr 2026 19:15:36 +0000 (15:15 -0400)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Mon, 4 May 2026 11:31:11 +0000 (07:31 -0400)
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
tests/ts/fincore/count
tests/ts/kill/options

index ab9beb7b2b000fbc26c867940a3c574124eb3281..a210c9a1eca1365c7212edb5e36d083a4513adbe 100755 (executable)
@@ -39,7 +39,7 @@ function _dd
        msg=$(dd "$@" 2>&1)
        ret=$?
        if [ $ret != 0 ]; then
-               echo "failed: dd $@" >&2
+               echo "failed: dd $*" >&2
                echo "$msg" >&2
        fi
        return $ret
index c4151a9bd81aebdd3ca7a77922fac90d11e93963..7b9805bc97caa6373af69de7f06e16d8a4de2664 100755 (executable)
@@ -41,12 +41,12 @@ try_option()
        [ $? -eq 1 ] || echo "${HELPER_SYMLINK##*/} helper did not start" >> "$TS_OUTPUT"
 
        if ! "$TS_CMD_KILL" "$@" $TEST_PID >> "$TS_OUTPUT" 2>> "$TS_ERRLOG"; then
-               echo "kill $@ did not work" >> "$TS_OUTPUT"
+               echo "kill $* did not work" >> "$TS_OUTPUT"
                all_ok=false
        fi
        wait $TEST_PID
        if [ $? -ne 1 ]; then
-               echo "wait $TEST_PID for $@ did not work" >> "$TS_OUTPUT"
+               echo "wait $TEST_PID for $* did not work" >> "$TS_OUTPUT"
                all_ok=false
        fi
 }