virt-install: Add some coverage exclusions
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
15a9502b7b
commit
925948a19e
|
@ -773,7 +773,7 @@ def check_domain(installer, domain, conscb, transient, waithandler):
|
|||
|
||||
# Wait loop
|
||||
while True:
|
||||
if check_domain_inactive():
|
||||
if check_domain_inactive(): # pragma: no cover
|
||||
print_stdout(_("Domain has shutdown. Continuing."))
|
||||
break
|
||||
|
||||
|
|
|
@ -375,7 +375,7 @@ def _run_console(domain, args):
|
|||
# pylint: disable=protected-access
|
||||
try: # pragma: no cover
|
||||
os.execvp(args[0], args)
|
||||
except Exception as e:
|
||||
except Exception as e: # pragma: no cover
|
||||
print("Error launching %s: %s" % (args, e))
|
||||
finally:
|
||||
os._exit(1) # pragma: no cover
|
||||
|
|
Loading…
Reference in New Issue