Skip to contentSkip to conversation

provide better error message when runqemu-ifup fails

PATCH In review Stephano Cetola 2 participants 2 messages Aug 29, 2016 – Aug 30, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 provide better error message when runqemu-ifup fails

If runqemu-ifup fails hen running testimage, a rather cryptic error regarding "no tty present" is displayed. If this step fails, we should at least point the user at runqemu-gen-tapdevs. A quick search of this term in the manual will lead them to "Enabling Runtime Tests on QEMU" which should give them all the info they need.

---
 scripts/runqemu-internal | 1 +
 1 file changed, 1 insertion(+)
scripts/runqemu-internal +1 -0
index d10466d..3d728c0 100755
@@ -153,6 +153,7 @@ else
             if [ $? -ne 0 ]; then
                 # Re-run standalone to see verbose errors
                 sudo $QEMUIFUP $USERID $GROUPID $OECORE_NATIVE_SYSROOT
+                echo "ERROR: Failed to setup tap device. Run runqemu-gen-tapdevs to manually create."
                 return 1
             fi
             LOCKFILE="$LOCKDIR/$tap"
Signature · 1 line
2.9.3
#1 lore raw
Quoted 10 lines · Stephano Cetola

If runqemu-ifup fails hen running testimage, a rather cryptic error regarding "no tty present" is displayed. If this step fails, we should at least point the user at runqemu-gen-tapdevs. A quick search of this term in the manual will lead them to "Enabling Runtime Tests on QEMU" which should give them all the info they need.

---
 scripts/runqemu-internal | 1 +
 1 file changed, 1 insertion(+)

The shortlog needs a prefix, e.g. "scripts/runqemu:" and this patch will likely need adapting on top of Robert's changes (see master-next).

Cheers,

Richard