From 86dfa0a8d30fa4fb4ece3ffc6a07ac09d8135236 Mon Sep 17 00:00:00 2001 From: Dmitry Perchanov Date: Thu, 28 Mar 2024 15:29:54 +0200 Subject: [PATCH] test: enumerate: verify process return code. Signed-off-by: Dmitry Perchanov --- unit-tests/live/tools/test-enumerate-devices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit-tests/live/tools/test-enumerate-devices.py b/unit-tests/live/tools/test-enumerate-devices.py index 2052753a41..6636b3a77e 100644 --- a/unit-tests/live/tools/test-enumerate-devices.py +++ b/unit-tests/live/tools/test-enumerate-devices.py @@ -23,7 +23,7 @@ universal_newlines=True, timeout=10, check=False ) # don't fail on errors - test.check(p != 0) # verify success return code + test.check(p.returncode == 0) # verify success return code run_time_seconds = run_time_stopwatch.get_elapsed() if run_time_seconds > run_time_threshold: log.e('Time elapsed too high!', run_time_seconds, ' > ', run_time_threshold)