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)