If the 'kill' test is executed with --use-system-commands, it calls
/bin/kill to avoid the shell's own kill command being invoked.
However, this doesn't work if the kill we want to test isn't in fact in
/bin. Instead, use $(which kill) to find a kill on the PATH and call
that directly.
Signed-off-by: Ross Burton <ross.burton@arm.com>
# make sure we do not use shell built-in command
if [ "$TS_USE_SYSTEM_COMMANDS" == "yes" ]; then
- TS_CMD_KILL="/bin/kill"
+ TS_CMD_KILL="$(which kill)"
fi
ts_check_test_command "$TS_CMD_KILL"
# make sure we do not use shell built-in command
if [ "$TS_USE_SYSTEM_COMMANDS" == "yes" ]; then
- TS_CMD_KILL="/bin/kill"
+ TS_CMD_KILL="$(which kill)"
fi
ts_check_test_command "$TS_CMD_KILL"
# make sure we do not use shell built-in command
if [ "$TS_USE_SYSTEM_COMMANDS" == "yes" ]; then
- TS_CMD_KILL="/bin/kill"
+ TS_CMD_KILL="$(which kill)"
fi
ts_check_test_command "$TS_CMD_KILL"
# make sure we do not use shell built-in command
if [ "$TS_USE_SYSTEM_COMMANDS" == "yes" ]; then
- TS_CMD_KILL="/bin/kill"
+ TS_CMD_KILL="$(which kill)"
fi
ts_check_test_command "$TS_CMD_KILL"
# make sure we do not use shell built-in command
if [ "$TS_USE_SYSTEM_COMMANDS" == "yes" ]; then
- TS_CMD_KILL="/bin/kill"
+ TS_CMD_KILL="$(which kill)"
fi
ts_check_test_command "$TS_CMD_KILL"