From abdf5e08b8329e5684976a738cd9f4ee447ffe5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Thu, 21 Apr 2022 16:46:13 +0100 Subject: test: optionally pass in 'lspci' path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rather than assuming the location of the lspci binary, allowing passing in an explicit path. Signed-off-by: Daniel P. Berrangé --- test/test-lspci.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/test-lspci.sh b/test/test-lspci.sh index 8177114..91adb13 100755 --- a/test/test-lspci.sh +++ b/test/test-lspci.sh @@ -5,7 +5,11 @@ # accept any. # -../samples/lspci | lspci -vv -F /dev/stdin >lspci.out +LSPCI=../samples/lspci + +test -n "$1" && LSPCI="$1" + +$LSPCI | lspci -vv -F /dev/stdin >lspci.out for i in 1 2 3; do if diff lspci.out $(dirname $0)/lspci.expected.out.$i >/dev/null 2>&1; then -- cgit v1.1