summaryrefslogtreecommitdiff
path: root/scripts/runqemu-internal
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-09 18:18:44 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-09 18:39:13 +0100
commit86234ac514cbd33a0058f3b74f158daeda325c0d (patch)
tree9691722f96d2954c3bf0fbf60138d575b7d75e3e /scripts/runqemu-internal
parentde470333dbdeea444199340e4cd458c13fed6a5a (diff)
downloadopenembedded-core-86234ac514cbd33a0058f3b74f158daeda325c0d.tar.gz
openembedded-core-86234ac514cbd33a0058f3b74f158daeda325c0d.tar.bz2
openembedded-core-86234ac514cbd33a0058f3b74f158daeda325c0d.zip
runqemu-internal: Hide some harmless warning messages
If sudo is used in the pseudo environment, as done in image tests when the user hasn't pre-setup the tap device, ensure the LD_PRELOAD error message isn't seen by the user. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-internal')
-rwxr-xr-xscripts/runqemu-internal8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index 4f6909b734..ce3291f3a9 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -173,7 +173,9 @@ if [ "$TAP" = "" ]; then
GROUPID=`id -g`
echo "Setting up tap interface under sudo"
- tap=`sudo $QEMUIFUP $GROUPID $OECORE_NATIVE_SYSROOT`
+ # Redirect stderr since we could see a LD_PRELOAD warning here if pseudo is loaded
+ # but inactive. This looks scary but is harmless
+ tap=`sudo $QEMUIFUP $GROUPID $OECORE_NATIVE_SYSROOT 2> /dev/null`
if [ $? -ne 0 ]; then
# Re-run standalone to see verbose errors
sudo $QEMUIFUP $GROUPID $OECORE_NATIVE_SYSROOT
@@ -191,7 +193,9 @@ fi
cleanup() {
if [ ! -e "$NOSUDO_FLAG" ]; then
- sudo $QEMUIFDOWN $TAP $OECORE_NATIVE_SYSROOT
+ # Redirect stderr since we could see a LD_PRELOAD warning here if pseudo is loaded
+ # but inactive. This looks scary but is harmless
+ sudo $QEMUIFDOWN $TAP $OECORE_NATIVE_SYSROOT 2> /dev/null
fi
echo "Releasing lockfile of preconfigured tap device '$TAP'"
release_lock $LOCKFILE