mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +00:00
scripts: check if /dev/{mshv,kvm} exists before test run
Right now integration test fails during the test run if /dev/mshv or /dev/kvm does not exist. We should not progress and exit early if not present. Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
parent
1ce1fe7334
commit
e436b382cc
@ -379,6 +379,10 @@ cmd_tests() {
|
||||
exported_device="/dev/mshv"
|
||||
fi
|
||||
|
||||
if [ ! -e "${exported_device}" ] ; then
|
||||
die "${exported_device} does not exist on the system"
|
||||
fi
|
||||
|
||||
set -- '--hypervisor' "$hypervisor" "$@"
|
||||
|
||||
ensure_build_dir
|
||||
|
Loading…
x
Reference in New Issue
Block a user