From b05d16fe8ece16d46f8ded2efcf300e9f4eb5a45 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 14 May 2020 22:51:30 +0200 Subject: [PATCH] compare_results.py: use ansi colors Change-Id: I2cfabc1364c53e6ee18b9471dcd7c681407d0473 --- compare-results.py | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/compare-results.py b/compare-results.py index 556a06312..ff5004ed5 100755 --- a/compare-results.py +++ b/compare-results.py @@ -22,13 +22,22 @@ re_testcase = re.compile(r'''|]*/>)''') re_failure = re.compile(r'''(FAIL') +RESULT_SKIP = col(BLUE, 'skip') +RESULT_XFAIL = col(YELLOW, 'xfail') +RESULT_FIXED = col(GREEN, 'xfail->PASS') +RESULT_NEW_PASS = col(GREEN, 'NEW: PASS') +RESULT_NEW_FAIL = col(RED, 'NEW: FAIL') RESULTS = ( RESULT_FAIL,