diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2022-04-21 16:46:13 +0100 |
---|---|---|
committer | John Levon <levon@movementarian.org> | 2022-05-09 23:28:10 +0100 |
commit | abdf5e08b8329e5684976a738cd9f4ee447ffe5a (patch) | |
tree | cab393b8f44f0f5b20c5718baf19c90d693d9833 /test | |
parent | bfc3ff06b5e9514a74e7490edaa1dcf82dec176d (diff) | |
download | libvfio-user-abdf5e08b8329e5684976a738cd9f4ee447ffe5a.zip libvfio-user-abdf5e08b8329e5684976a738cd9f4ee447ffe5a.tar.gz libvfio-user-abdf5e08b8329e5684976a738cd9f4ee447ffe5a.tar.bz2 |
test: optionally pass in 'lspci' path
Rather than assuming the location of the lspci binary, allowing
passing in an explicit path.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-lspci.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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 |