diff options
author | Po-Hsu Lin <po-hsu.lin@canonical.com> | 2015-09-04 14:15:05 +0800 |
---|---|---|
committer | Po-Hsu Lin <po-hsu.lin@canonical.com> | 2015-09-04 14:15:05 +0800 |
commit | 8547a2b2bcdd6779e03a13b7db8ce748fe5d3ed1 (patch) | |
tree | 3181380401b56bce86d8b7bac40a41d4b8a59324 /bin | |
parent | 904b3d565473d5725d9d154232c563ae7d8ad296 (diff) |
provider:checkbox re-order the pm_test error log output
Move the DEBUG information to after the ERROR message, make it less confusing for the tester.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pm_test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pm_test b/bin/pm_test index 7a5ab33..167487c 100755 --- a/bin/pm_test +++ b/bin/pm_test @@ -45,7 +45,6 @@ def main(): operation.setup() operation.run() except (TestCancelled, TestFailed) as exception: - operation.teardown() if isinstance(exception, TestFailed): logging.error(exception.args[0]) message = exception.MESSAGE.format(args.pm_operation.capitalize()) @@ -54,6 +53,7 @@ def main(): else: title = '{0} test'.format(args.pm_operation.capitalize()) MessageDialog(title, message, Gtk.MessageType.ERROR).run() + operation.teardown() return exception.RETURN_CODE |