diff options
author | Stefan Stanacar <stefanx.stanacar@intel.com> | 2013-05-15 07:30:48 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-16 00:23:37 +0300 |
commit | 27069483c30c9458eccf8e89fd581750bbe1f522 (patch) | |
tree | c6a50ce334611ba19f248136e4773f2ad3a91759 /scripts/qemuimage-testlib | |
parent | 046b0e1587ae404e210f799e512e5aff587ffa94 (diff) | |
download | poky-27069483c30c9458eccf8e89fd581750bbe1f522.tar.gz |
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.
(From OE-Core rev: 1a5446ca73736753d172c06dcb48858887c7a896)
Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/qemuimage-testlib')
-rwxr-xr-x | scripts/qemuimage-testlib | 6 |
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() | |||
385 | Test_Create_Qemu() | 385 | Test_Create_Qemu() |
386 | { | 386 | { |
387 | local timeout=$1 | 387 | local timeout=$1 |
388 | shift | ||
389 | local extraargs="$@" | ||
388 | local up_time=0 | 390 | local up_time=0 |
389 | 391 | ||
390 | RUNQEMU=`which runqemu` | 392 | RUNQEMU=`which runqemu` |
@@ -437,8 +439,8 @@ Test_Create_Qemu() | |||
437 | export MACHINE=$QEMUARCH | 439 | export MACHINE=$QEMUARCH |
438 | 440 | ||
439 | # Create Qemu in localhost VNC Port 1 | 441 | # Create Qemu in localhost VNC Port 1 |
440 | echo "Running xterm -display ${DISPLAY} -e 'OE_TMPDIR=${OE_TMPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE} 2>&1 | tee ${RUNQEMU_LOGFILE} || /bin/sleep 60' &" | 442 | echo "Running xterm -display ${DISPLAY} -e 'OE_TMPDIR=${OE_TMPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE} ${extraargs} 2>&1 | tee ${RUNQEMU_LOGFILE} || /bin/sleep 60' &" |
441 | xterm -display ${DISPLAY} -e "OE_TMPDIR=${OE_TMPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE} 2>&1 | tee ${RUNQEMU_LOGFILE} || /bin/sleep 60" & | 443 | xterm -display ${DISPLAY} -e "OE_TMPDIR=${OE_TMPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE} ${extraargs} 2>&1 | tee ${RUNQEMU_LOGFILE} || /bin/sleep 60" & |
442 | 444 | ||
443 | # Get the pid of the xterm processor, which will be used in Test_Kill_Qemu | 445 | # Get the pid of the xterm processor, which will be used in Test_Kill_Qemu |
444 | XTERMPID=$! | 446 | XTERMPID=$! |