diff options
| -rw-r--r-- | meta/classes/imagetest-qemu.bbclass | 2 | ||||
| -rwxr-xr-x | scripts/oe-setup-rpmrepo | 8 | ||||
| -rwxr-xr-x | scripts/qemuimage-testlib | 4 | ||||
| -rwxr-xr-x | scripts/runqemu | 7 |
4 files changed, 16 insertions, 5 deletions
diff --git a/meta/classes/imagetest-qemu.bbclass b/meta/classes/imagetest-qemu.bbclass index 18798e025c..4ea86c04fe 100644 --- a/meta/classes/imagetest-qemu.bbclass +++ b/meta/classes/imagetest-qemu.bbclass | |||
| @@ -70,7 +70,7 @@ def qemuimagetest_main(d): | |||
| 70 | os.environ["DISPLAY"] = bb.data.getVar("DISPLAY", d, True) | 70 | os.environ["DISPLAY"] = bb.data.getVar("DISPLAY", d, True) |
| 71 | os.environ["COREBASE"] = bb.data.getVar("COREBASE", d, True) | 71 | os.environ["COREBASE"] = bb.data.getVar("COREBASE", d, True) |
| 72 | os.environ["TOPDIR"] = bb.data.getVar("TOPDIR", d, True) | 72 | os.environ["TOPDIR"] = bb.data.getVar("TOPDIR", d, True) |
| 73 | os.environ["TMPDIR"] = bb.data.getVar("TMPDIR", d, True) | 73 | os.environ["OE_TMPDIR"] = bb.data.getVar("TMPDIR", d, True) |
| 74 | os.environ["TEST_STATUS"] = bb.data.getVar("TEST_STATUS", d, True) | 74 | os.environ["TEST_STATUS"] = bb.data.getVar("TEST_STATUS", d, True) |
| 75 | os.environ["TARGET_IPSAVE"] = bb.data.getVar("TARGET_IPSAVE", d, True) | 75 | os.environ["TARGET_IPSAVE"] = bb.data.getVar("TARGET_IPSAVE", d, True) |
| 76 | os.environ["TEST_SERIALIZE"] = bb.data.getVar("TEST_SERIALIZE", d, True) | 76 | os.environ["TEST_SERIALIZE"] = bb.data.getVar("TEST_SERIALIZE", d, True) |
diff --git a/scripts/oe-setup-rpmrepo b/scripts/oe-setup-rpmrepo index 03372b6199..fc2f7a8c0c 100755 --- a/scripts/oe-setup-rpmrepo +++ b/scripts/oe-setup-rpmrepo | |||
| @@ -17,9 +17,15 @@ | |||
| 17 | # along with this program; if not, write to the Free Software | 17 | # along with this program; if not, write to the Free Software |
| 18 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 19 | 19 | ||
| 20 | |||
| 21 | # Don't use TMPDIR from the external environment, it may be a distro | ||
| 22 | # variable pointing to /tmp (e.g. within X on OpenSUSE) | ||
| 23 | # Instead, use OE_TMPDIR for passing this in externally. | ||
| 24 | TMPDIR="$OE_TMPDIR" | ||
| 25 | |||
| 20 | function usage() { | 26 | function usage() { |
| 21 | echo "Usage: $0 <rpm-dir>" | 27 | echo "Usage: $0 <rpm-dir>" |
| 22 | echo " <rpm-dir>: default is $TPMDIR/deploy/rpm" | 28 | echo " <rpm-dir>: default is $TMPDIR/deploy/rpm" |
| 23 | } | 29 | } |
| 24 | 30 | ||
| 25 | if [ $# -gt 1 ]; then | 31 | if [ $# -gt 1 ]; then |
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() | |||
| 467 | export MACHINE=$QEMUARCH | 467 | export MACHINE=$QEMUARCH |
| 468 | 468 | ||
| 469 | # Create Qemu in localhost VNC Port 1 | 469 | # Create Qemu in localhost VNC Port 1 |
| 470 | echo "Running xterm -display ${DISPLAY} -e 'TMPDIR=${TMPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE} && /bin/sleep 60' &" | 470 | echo "Running xterm -display ${DISPLAY} -e 'OE_TMPDIR=${OE_TMPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE} && /bin/sleep 60' &" |
| 471 | xterm -display ${DISPLAY} -e "TMPDIR=${TMPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE} && /bin/sleep 60" & | 471 | xterm -display ${DISPLAY} -e "OE_TMPDIR=${OE_TMPDIR} ${RUNQEMU} ${KERNEL} ${TEST_ROOTFS_IMAGE} && /bin/sleep 60" & |
| 472 | 472 | ||
| 473 | # Get the pid of the xterm processor, which will be used in Test_Kill_Qemu | 473 | # Get the pid of the xterm processor, which will be used in Test_Kill_Qemu |
| 474 | PID=$! | 474 | PID=$! |
diff --git a/scripts/runqemu b/scripts/runqemu index 0f943b5fec..31e9822693 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
| @@ -55,6 +55,11 @@ SCRIPT_QEMU_OPT="" | |||
| 55 | SCRIPT_QEMU_EXTRA_OPT="" | 55 | SCRIPT_QEMU_EXTRA_OPT="" |
| 56 | SCRIPT_KERNEL_OPT="" | 56 | SCRIPT_KERNEL_OPT="" |
| 57 | 57 | ||
| 58 | # Don't use TMPDIR from the external environment, it may be a distro | ||
| 59 | # variable pointing to /tmp (e.g. within X on OpenSUSE) | ||
| 60 | # Instead, use OE_TMPDIR for passing this in externally. | ||
| 61 | TMPDIR="$OE_TMPDIR" | ||
| 62 | |||
| 58 | # Determine whether the file is a kernel or QEMU image, and set the | 63 | # Determine whether the file is a kernel or QEMU image, and set the |
| 59 | # appropriate variables | 64 | # appropriate variables |
| 60 | process_filename() { | 65 | process_filename() { |
| @@ -260,7 +265,7 @@ SPITZ_DEFAULT_FSTYPE=ext3 | |||
| 260 | 265 | ||
| 261 | setup_tmpdir() { | 266 | setup_tmpdir() { |
| 262 | if [ -z "$TMPDIR" ]; then | 267 | if [ -z "$TMPDIR" ]; then |
| 263 | # BUILDDIR unset, try and get TMPDIR from bitbake | 268 | # Try to get TMPDIR from bitbake |
| 264 | type -P bitbake &>/dev/null || { | 269 | type -P bitbake &>/dev/null || { |
| 265 | echo "In order for this script to dynamically infer paths"; | 270 | echo "In order for this script to dynamically infer paths"; |
| 266 | echo "to kernels or filesystem images, you either need"; | 271 | echo "to kernels or filesystem images, you either need"; |
