summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2010-03-18 18:55:07 +0530
committerAmit Shah <amit.shah@redhat.com>2010-03-18 18:56:07 +0530
commit1eb19e1b1a0b806e21f9a82b58cad8b27ab399f1 (patch)
treeb00147c557de45e7292e6eda7c8c78751ca7e0da
parentc9b2e34f996c63fd99707be252852eddb500b375 (diff)
downloadtest-virtserial-1eb19e1b1a0b806e21f9a82b58cad8b27ab399f1.tar.gz
test-virtserial-1eb19e1b1a0b806e21f9a82b58cad8b27ab399f1.tar.xz
test-virtserial-1eb19e1b1a0b806e21f9a82b58cad8b27ab399f1.zip
run-test: Allow the guest to be specified by an environment variable
Not everyone will have the same guest as me to run, or in the same path. Let it be configurable. Signed-off-by: Amit Shah <amit.shah@redhat.com>
-rwxr-xr-xrun-test.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/run-test.sh b/run-test.sh
index f927feb..71c6ea7 100755
--- a/run-test.sh
+++ b/run-test.sh
@@ -4,12 +4,13 @@ QEMU_DEF=/home/amit/src/qemu-kvm/x86_64-softmmu/qemu-system-x86_64
QEMU_OLD_DEF=/home/amit/src/qemu/x86_64-softmmu/qemu-system-x86_64
KERNEL_DEF=/home/amit/tmp/linux-2.6/arch/x86/boot/bzImage
VCPUS_DEF=1
+GUEST_DEF=/guests/f11-auto.qcow2
QEMU=${QEMU:-$QEMU_DEF}
QEMU_OLD=${QEMU_OLD:-$QEMU_OLD_DEF}
KERNEL=${KERNEL:-$KERNEL_DEF}
VCPUS=${VCPUS:-$VCPUS_DEF}
-GUEST=/guests/f11-auto.qcow2
+GUEST=${GUEST:-$GUEST_DEF}
KERNEL="-kernel $KERNEL"
KERNELARG="-append \"root=/dev/sda2 console=tty0 console=ttyS0\""