]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests/ts/kill/decode: avoid using shell built-in kill command
authorChen Qi <Qi.Chen@windriver.com>
Thu, 15 May 2025 08:44:33 +0000 (16:44 +0800)
committerKarel Zak <kzak@redhat.com>
Mon, 19 May 2025 09:33:47 +0000 (11:33 +0200)
This test case should do the same as other kill test cases, avoiding
using shell built-in kill command.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
tests/ts/kill/decode

index 03bc25ff60755d47a9f1c98614a334178fe9ee5f..57149899ef3ce22f8bae95a6590f50cc486384a7 100755 (executable)
@@ -18,6 +18,11 @@ TS_DESC="decode functions"
 . "$TS_TOPDIR/functions.sh"
 ts_init "$*"
 
+# make sure we do not use shell built-in command
+if [ "$TS_USE_SYSTEM_COMMANDS" == "yes" ]; then
+       TS_CMD_KILL="$(which kill)"
+fi
+
 ts_skip_qemu_user
 
 ts_check_test_command "$TS_CMD_KILL"