summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStefan Stanacar <stefanx.stanacar@intel.com>2013-05-15 07:30:48 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-16 00:22:22 +0300
commit1a5446ca73736753d172c06dcb48858887c7a896 (patch)
tree9d6628d04548e08fcc5a66e422d630a1eb18e1c8 /scripts
parente29a13bf047ce90e9e1aae953044b9cab85f9aab (diff)
downloadopenembedded-core-1a5446ca73736753d172c06dcb48858887c7a896.tar.gz
openembedded-core-1a5446ca73736753d172c06dcb48858887c7a896.tar.bz2
openembedded-core-1a5446ca73736753d172c06dcb48858887c7a896.zip
qemuimage-testlib: add support for extra arguments passed to runqemu
Some tests might want to pass extra arguments to runqemu. I can think of "kvm" or qemuparams="-m 1024" when we want extra muscle. Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/qemuimage-testlib6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/qemuimage-testlib b/scripts/qemuimage-testlib
index 622c1ce438..1fa9b4edbd 100755
--- a/scripts/qemuimage-testlib
+++ b/scripts/qemuimage-testlib
@@ -385,6 +385,8 @@ Test_Fetch_Target_IP()
Test_Create_Qemu()
{
local timeout=$1
+ shift
+ local extraargs="$@"
local up_time=0
RUNQEMU=`which runqemu`
@@ -437,8 +439,8 @@ Test_Create_Qemu()
export MACHINE=$QEMUARCH
# Create Qemu in localhost VNC Port 1
- echo "Running xterm -display ${DISPLAY} -e 'OE_TMPDIR=${OE_TMPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE} 2>&1 | tee ${RUNQEMU_LOGFILE} || /bin/sleep 60' &"
- xterm -display ${DISPLAY} -e "OE_TMPDIR=${OE_TMPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE} 2>&1 | tee ${RUNQEMU_LOGFILE} || /bin/sleep 60" &
+ echo "Running xterm -display ${DISPLAY} -e 'OE_TMPDIR=${OE_TMPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE} ${extraargs} 2>&1 | tee ${RUNQEMU_LOGFILE} || /bin/sleep 60' &"
+ xterm -display ${DISPLAY} -e "OE_TMPDIR=${OE_TMPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE} ${extraargs} 2>&1 | tee ${RUNQEMU_LOGFILE} || /bin/sleep 60" &
# Get the pid of the xterm processor, which will be used in Test_Kill_Qemu
XTERMPID=$!