From 4ff17dc89d4f0ff7ddd8e5b375a4fe88ff3b8f37 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 28 Sep 2011 16:28:25 +0100 Subject: scripts: use OE_TMPDIR instead of TMPDIR external variable On OpenSUSE within an X session, TMPDIR is set to the system temporary directory (/tmp) which is incorrect for these scripts. Thus, change runqemu and oe-setup-rpmrepo to use OE_TMPDIR from the external environment rather than TMPDIR. Fixes [YOCTO #1530] (From OE-Core rev: 4e24c10952c7a52af7f2447595fd484692d35534) (From OE-Core rev: 354497bf3e3bf68374875caa97d9b4fdcad74789) Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- scripts/qemuimage-testlib | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/qemuimage-testlib') diff --git a/scripts/qemuimage-testlib b/scripts/qemuimage-testlib index 9ffaa7c785..6a1b9002a4 100755 --- a/scripts/qemuimage-testlib +++ b/scripts/qemuimage-testlib @@ -467,8 +467,8 @@ Test_Create_Qemu() export MACHINE=$QEMUARCH # Create Qemu in localhost VNC Port 1 - echo "Running xterm -display ${DISPLAY} -e 'TMPDIR=${TMPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE} && /bin/sleep 60' &" - xterm -display ${DISPLAY} -e "TMPDIR=${TMPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE} && /bin/sleep 60" & + echo "Running xterm -display ${DISPLAY} -e 'OE_TMPDIR=${OE_TMPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE} && /bin/sleep 60' &" + xterm -display ${DISPLAY} -e "OE_TMPDIR=${OE_TMPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE} && /bin/sleep 60" & # Get the pid of the xterm processor, which will be used in Test_Kill_Qemu PID=$! -- cgit v1.2.3-54-g00ecf