Skip to content

Commit

Permalink
pts: add Indecisive test verdict
Browse files Browse the repository at this point in the history
PTS v8.7.4 introduces "Indecisive" test verdict.
  • Loading branch information
piotrnarajowski committed Dec 18, 2024
1 parent b451a19 commit 3f0ba79
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions autopts/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ def get_result_color(status):
return "green"
if status == "FAIL":
return "red"
if status == "INCONC":
if status in ("INCONC", "INDCSV"):
return "yellow"
return "white"

Expand Down Expand Up @@ -953,7 +953,7 @@ def _run_test_case(self, pts, test_case, exceptions, finish_count):

if AUTO_PTS_LOCAL: # set fake status and return
statuses = ["PASS", "INCONC", "FAIL", "UNKNOWN VERDICT: NONE",
"BTP ERROR", "XML-RPC ERROR", "BTP TIMEOUT"]
"BTP ERROR", "XML-RPC ERROR", "BTP TIMEOUT", "INDCSV"]
test_case.status = random.choice(statuses)
return

Expand Down
2 changes: 2 additions & 0 deletions autopts/ptscontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ def Log(self, log_type, logtype_string, log_time, log_message):

if "PASS" in log_message:
new_status = "PASS"
elif "INDCSV" in log_message:
new_status = "INDCSV"
elif "INCONC" in log_message:
new_status = "INCONC"
elif "FAIL" in log_message:
Expand Down
2 changes: 1 addition & 1 deletion cliparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(self, cli_support=None, board_names=None, add_help=True):
" itself after wrong status.")

self.add_argument("--not_recover", nargs='+',
default=['PASS', 'INCONC', 'FAIL', 'NOT_IMPLEMENTED'],
default=['PASS', 'INCONC', 'FAIL', 'NOT_IMPLEMENTED', 'INDCSV'],
help="Specify at which statuses autoptsclient should "
"try to recover itself.")

Expand Down

0 comments on commit 3f0ba79

Please sign in to comment.