]> code.ossystems Code Review - openembedded-core.git/commit
runqemu: handle tap device creation failure properly
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 9 Dec 2019 10:59:09 +0000 (23:59 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 15 Dec 2019 09:04:38 +0000 (09:04 +0000)
commit47e40fdd7dd58bde4e017e2375c16450fcb14eca
treed79b0f6167dc54cd23010345a143941b8c3b456f
parentca64a3d490fbe1bf87c9f1dd6d87a1ecdeba8325
runqemu: handle tap device creation failure properly

If we fail to run the command to generate the tap devices then we should
show a reasonable message and then exit, without showing a traceback.
"return 1" at this point in the code does nothing because the caller
doesn't check the return, so just use sys.exit().

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu