@@ -1,10 +1,14 @@
#!/bin/bash
-if [ ! -f config.mak ]; then
+if [ ! -f config.mak ] && [ ! -f ../config.mak ]; then
echo run ./configure first. See ./configure -h
exit 2
fi
-source config.mak
+if [ -f config.mak ]; then
+ source config.mak
+else
+ source ../config.mak
+fi
processor="$PROCESSOR"
qemu="${QEMU:-qemu-system-$ARCH_NAME}"
@@ -2,6 +2,16 @@
NOTFOUND=1
TESTDEVNOTSUPP=2
+if [ ! -f config.mak ] && [ ! -f ../config.mak ]; then
+ echo run ./configure first. See ./configure -h
+ exit 2
+fi
+if [ -f config.mak ]; then
+ source config.mak
+else
+ source ../config.mak
+fi
+
qemubinarysearch="${QEMU:-qemu-kvm qemu-system-x86_64}"
for qemucmd in ${qemubinarysearch}
We'll use a variable from config.mak in a later patch. Try not to break users that have gotten used to doing cd x86; ./run test.flat by also looking in the parent directory. While at it, add this parent directory check to arm too. Signed-off-by: Andrew Jones <drjones@redhat.com> --- arm/run | 8 ++++++-- x86/run | 10 ++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-)