Skip to content

Commit

Permalink
Recognize when LTP test returns zero
Browse files Browse the repository at this point in the history
The previous code was not taking in consideration the return code 0, so
when test text was not acquired correctly, the text process ended up to
recognize test failure.
  • Loading branch information
acerv committed Mar 14, 2024
1 parent c49173c commit fe9e59d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libkirk/ltp.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,9 @@ async def read_result(
elif not error:
failed = 1

if retcode in (2, -1):
if retcode == 0:
status = ResultStatus.PASS
elif retcode in (2, -1):
status = ResultStatus.BROK
elif retcode == 4:
status = ResultStatus.WARN
Expand Down

0 comments on commit fe9e59d

Please sign in to comment.