From f68c80c058020dec0ea6c9393bbcab5d83f4d5fd Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Tue, 23 Aug 2022 12:47:16 -0400 Subject: Fix checking for qemu binary Signed-off-by: Kent Overstreet --- lib/libktest.sh | 6 +++--- lib/util.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libktest.sh b/lib/libktest.sh index 86073e0..282870c 100644 --- a/lib/libktest.sh +++ b/lib/libktest.sh @@ -28,7 +28,6 @@ ktest_dio=off ktest_nice=0 checkdep socat -checkdep qemu-system-x86_64 qemu-system-x86 checkdep brotli # config files: @@ -259,10 +258,11 @@ get_unused_port() start_vm() { - checkdep_arch - log_verbose "ktest_arch=$ktest_arch" + checkdep $QEMU_BIN $QEMU_PACKAGE + check_root_image_exists + if [[ -z $ktest_kernel_binary ]]; then echo "Required parameter -k missing: kernel" exit 1 diff --git a/lib/util.sh b/lib/util.sh index 115bbd6..42d21dd 100644 --- a/lib/util.sh +++ b/lib/util.sh @@ -1,7 +1,7 @@ . "$ktest_dir/lib/common.sh" -checkdep_arch() +check_root_image_exists() { if [[ -z $ktest_root_image ]]; then if [[ -f $HOME/.ktest/root.$DEBIAN_ARCH ]]; then -- cgit v1.2.3