From df74cf25f0904562623a15b641a7770d2fa88570 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 23 Dec 2010 17:27:14 +0000 Subject: qemuimage-testlib: Ensure TOPDIR/BUILDDIR are set The recent environment changes mean TOPDIR/BUILDDIR need to be exported specifcially to the enviromnent so the qemu scripts can find the correct build directory. Without this, qemu can fail to run. Signed-off-by: Richard Purdie --- scripts/qemuimage-testlib | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/qemuimage-testlib') diff --git a/scripts/qemuimage-testlib b/scripts/qemuimage-testlib index 608c6f0a75..79882d9ea7 100644 --- a/scripts/qemuimage-testlib +++ b/scripts/qemuimage-testlib @@ -396,7 +396,8 @@ Test_Create_Qemu() export MACHINE=$QEMUARCH # Create Qemu in localhost VNC Port 1 - xterm -display ${DISPLAY} -e "${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE}" & + echo "Running xterm -display ${DISPLAY} -e 'BUILDDIR=${TOPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE}' &" + xterm -display ${DISPLAY} -e "BUILDDIR=${TOPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE}" & # Get the pid of the xterm processor, which will be used in Test_Kill_Qemu PID=$! -- cgit v1.2.3