diff mbox

[kvm-unit-tests,v3,3/9] x86/run: source config.mak

Message ID 20170613115451.6240-4-drjones@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Andrew Jones June 13, 2017, 11:54 a.m. UTC
x86/run will need to start looking at config vars with
the next patch.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
---
 x86/run | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/x86/run b/x86/run
index 5b402a680cc7..88f5ff771140 100755
--- a/x86/run
+++ b/x86/run
@@ -1,6 +1,13 @@ 
 #!/usr/bin/env bash
 
-[ -z "$STANDALONE" ] && source scripts/arch-run.bash
+if [ -z "$STANDALONE" ]; then
+	if [ ! -f config.mak ]; then
+		echo "run ./configure && make first. See ./configure -h"
+		exit 2
+	fi
+	source config.mak
+	source scripts/arch-run.bash
+fi
 
 qemu=$(search_qemu_binary)