]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
runqemu: handle tap device creation failure properly paule/runqemu-fixes-oe
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 9 Dec 2019 03:13:17 +0000 (16:13 +1300)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 9 Dec 2019 10:54:56 +0000 (23:54 +1300)
commit464eb3ed38a95e03bd5906daff14439ae83eb953
tree8726f9d906a283c641f32d600f65f48113bdbe94
parent4675d65dbb2c7e16283e3045c7ca90cec41ed0af
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>
scripts/runqemu