tests/virtconvtest: skip test if unar is missing

If you are running all tests, we should properly skip the test, if something
is missing instead of silently ignore that tests.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>

(crobinso: make it skip the test, rather than raise an exception)
This commit is contained in:
Pavel Hrdina 2015-07-10 14:07:00 +02:00 committed by Cole Robinson
parent 8dbe96fc01
commit 349220d188
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class TestVirtConv(unittest.TestCase):
if (os.path.splitext(in_path)[1] in [".zip"] and
not find_executable("unar")):
return
self.skipTest("Install 'unar' to run all tests.")
try:
os.chdir(os.path.dirname(in_path))