diff --git a/src/tests/ftest/util/job_manager_utils.py b/src/tests/ftest/util/job_manager_utils.py index 7b0201214c7d..fce2e3ef4c4d 100644 --- a/src/tests/ftest/util/job_manager_utils.py +++ b/src/tests/ftest/util/job_manager_utils.py @@ -1,5 +1,5 @@ """ - (C) Copyright 2020-2023 Intel Corporation. + (C) Copyright 2020-2024 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent """ @@ -1217,9 +1217,8 @@ def run(self, raise_exception=None): command = " ".join([self.env.to_export_str(), str(self.job)]).strip() self.result = run_remote(self.log, self._hosts, command, self.verbose, self.timeout) - if raise_exception and self.result.timeout: - raise CommandFailure( - "Timeout detected running '{}' on {}".format(str(self.job), self.hosts)) + if raise_exception and not self.result.passed: + raise CommandFailure("Error running '{}' on {}".format(str(self.job), self.hosts)) if self.exit_status_exception and not self.check_results(): # Command failed if its output contains bad keywords