virt-install: Add some coverage exclusions

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-01-15 10:59:17 -05:00
parent 15a9502b7b
commit 925948a19e
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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