terminal.py: do not stop searching for auto

If a terminal fails to spawn() we should continue looking.
gnome-terminal, in particular can be present but not start.

(From OE-Core rev: 6e4babdeee38d32002a4c9129e77466ae4156dd7)

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Joe Slater
2020-05-21 11:41:07 -07:00
committed by Richard Purdie
parent edbf8d3999
commit e620119715

View File

@@ -207,7 +207,10 @@ def spawn_preferred(sh_cmd, title=None, env=None, d=None):
spawn(terminal.name, sh_cmd, title, env, d)
break
except UnsupportedTerminal:
continue
pass
except:
bb.warn("Terminal %s is supported but did not start" % (terminal.name))
# when we've run out of options
else:
raise NoSupportedTerminals(get_cmd_list())