Skip to content

Commit

Permalink
DAOS-15817 test: raise exception for clush job_manager failure
Browse files Browse the repository at this point in the history
Test-tag: ObjectMetadata
TODO-Test-tag: DaosCoreTestDfuse
Skip-unit-tests: true
Skip-fault-injection-test: true

Raise an exception when the clush job_manager run fails.

Required-githooks: true

Signed-off-by: Dalton Bohning <[email protected]>
  • Loading branch information
daltonbohning committed May 10, 2024
1 parent 2b79a91 commit 079d570
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/tests/ftest/util/job_manager_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
(C) Copyright 2020-2023 Intel Corporation.
(C) Copyright 2020-2024 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
"""
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 079d570

Please sign in to comment.