From 8502e72356cfe7d1c76c33c4f674ea0325220327 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Mon, 22 Feb 2016 16:30:26 -0500 Subject: [PATCH] Treat xfail output like success This commit updates one edge case where output from xfail was treated like a failure instead of like a success. Change-Id: I073302bc9aea6751906cb4955055c55b7c5dc3fc --- os_testr/subunit_trace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_testr/subunit_trace.py b/os_testr/subunit_trace.py index f194c6e..2a03fdf 100755 --- a/os_testr/subunit_trace.py +++ b/os_testr/subunit_trace.py @@ -191,7 +191,7 @@ def show_outcome(stream, test, print_failures=False, failonly=False, if not print_failures: print_attachments(stream, test, all_channels=True) elif not failonly: - if status == 'success': + if status == 'success' or status == 'xfail': if abbreviate: color.write('.', 'green') else: