runqemu: report error if TMPDIR cannot be determined
authorScott Garman <scott.a.garman@intel.com>
Sat, 23 Jul 2011 01:23:27 +0000 (18:23 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Jul 2011 11:54:34 +0000 (12:54 +0100)
commit8fbf1b425acec9a67982a4401ca10a80d81caaa5
treef655915a2de545160db90af91c5ed97f6ae395df
parentb05f79dd43d456dd9d61ce69f8f78328c0cd675c
runqemu: report error if TMPDIR cannot be determined

Invoking runqemu outside of the build directory for an
in-tree setup results in an empty TMPDIR because bitbake -e
cannot be run to find it.

A symptom of this problem is running runqemu and getting the
following error:

Error: Unable to find tunctl binary in <directory>

Catch this case and report the error to the user.

This fixes [YOCTO #1278]

(From OE-Core rev: ab5544ac801a976b56468ade0f5d2e95c11feb87)

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu