From 925948a19ec38a3e0627d80c7b8ef7a9613b57c9 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 15 Jan 2020 10:59:17 -0500 Subject: [PATCH] virt-install: Add some coverage exclusions Signed-off-by: Cole Robinson --- virt-install | 2 +- virtinst/cli.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/virt-install b/virt-install index 05d3aaef..0056a218 100755 --- a/virt-install +++ b/virt-install @@ -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 diff --git a/virtinst/cli.py b/virtinst/cli.py index 769447dd..e267a5fd 100644 --- a/virtinst/cli.py +++ b/virtinst/cli.py @@ -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