REGTESTS: use "command -v" instead of "which"
authorWilly Tarreau <w@1wt.eu>
Tue, 18 Feb 2020 13:42:33 +0000 (14:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Mar 2020 14:52:58 +0000 (16:52 +0200)
commit34a0c6399c67db858aa54401706765e0de72817e
tree521900fe8bc0139b79b0682974b32771a93ad3fc
parentb82d6ef70bb0a757631549cdc889f9b138da5f09
REGTESTS: use "command -v" instead of "which"

Ilya reported that the "which" utility is not that much portable and is
absent from Fedora. "type -p" is not portable either, and the correct
solution appears to be "command -v", so let's use this for now, we can
change it again in the future in case of problems.

Link: https://www.mail-archive.com/haproxy@formilux.org/msg36332.html
(cherry picked from commit b5e62679aaf1369b9a8f5604d8ab438e6bc70e2d)
Signed-off-by: Willy Tarreau <w@1wt.eu>
reg-tests/compression/lua_validation.vtc