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 cda4a74 commit 44f30fc
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 44f30fc

Please sign in to comment.