testsuite: fix last "which" change

In commit afa63b2dcd I replaced `type -p' with
`command -pv'.  But actually it is wrong, the right
substitution is `command -v'.  We need to find our
busybox which is in the first directory in $PATH, so
`command -p' should not be used because it uses
default PATH, not current value of PATH where our
busybox binary resides.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Michael Tokarev 2014-01-23 14:41:53 +01:00 committed by Denys Vlasenko
parent 821e64316a
commit bf2f2229bb

View File

@ -1,4 +1,4 @@
BUSYBOX=$(command -pv busybox) BUSYBOX=$(command -v busybox)
SAVED_PATH=$PATH SAVED_PATH=$PATH
unset PATH unset PATH
$BUSYBOX which ls $BUSYBOX which ls