diff mbox series

[2/2] scripts/resulttool: define custom string for "not found" test results

Message ID 20230802141718.3326905-3-alexis.lothore@bootlin.com
State Accepted, archived
Commit b5f6da6e13f3484f51dfa07f6b3500aea7a21825
Headers show
Series add custom string when regression is about missing test result | expand

Commit Message

Alexis Lothoré Aug. 2, 2023, 2:17 p.m. UTC
From: Alexis Lothoré <alexis.lothore@bootlin.com>

Whenever a test result is present in base test result but absent from
target test results, we have an entry in regression report looking like the
following one:

    ptestresult.apr.testfile: PASSED -> None

The "None" status may be a bit confusing, so replace it with a custom
string which really states what "None" means in this context:

    ptestresult.apr.testfile: PASSED -> No matching test result

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
---
 scripts/lib/resulttool/regression.py | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/scripts/lib/resulttool/regression.py b/scripts/lib/resulttool/regression.py
index 3a23d7fc0a0e..3d64b8f4af7c 100644
--- a/scripts/lib/resulttool/regression.py
+++ b/scripts/lib/resulttool/regression.py
@@ -75,6 +75,7 @@  OESELFTEST_METADATA_GUESS_TABLE={
 }
 
 STATUS_STRINGS = {
+    "None": "No matching test result"
 }
 
 def test_has_at_least_one_matching_tag(test, tag_list):