Skip to content

Commit

Permalink
Merge pull request #814 from waynesun09/check_exit_status
Browse files Browse the repository at this point in the history
utils_test.libvirt: Add command string in negative fail message
  • Loading branch information
Hao-Liu authored Dec 9, 2016
2 parents 3dfeff6 + dbf57ee commit 9c9b3f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion virttest/utils_test/libvirt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,8 @@ def check_exit_status(result, expect_error=False):
else:
logging.debug("Command output:\n%s", result.stdout.strip())
elif expect_error and result.exit_status == 0:
raise exceptions.TestFail("Expect fail, but run successfully.")
raise exceptions.TestFail("Run '%s' expect fail, but run "
"successfully." % result.command)


def get_interface_details(vm_name):
Expand Down

0 comments on commit 9c9b3f1

Please sign in to comment.