Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Dean Roehrich <[email protected]>
  • Loading branch information
roehrich-hpe committed Apr 1, 2024
1 parent cf431c8 commit f9f9cc6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions testsuite/integration/src/tests/slurmctld.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,11 @@ def submit_job(self, script_path):
print(out + "\n")
print("END Job submission error")
raise JobSubmissionError(out)
jobId = int(out.split()[-1])
return jobId, script_path + ".out", script_path + ".error.out"
print("BEGIN Job submission")
print(out + "\n")
print("END Job submission")
job_id = int(out.split()[-1])
return job_id, script_path + ".out", script_path + ".error.out"

def remove_job_output(self, output_file_path, error_file_path):
"""
Expand Down Expand Up @@ -112,8 +115,7 @@ def scontrol_show_job(self, jobId):
def wait_until_job_has_been_x(self, jobId, job_state_wanted, script_path):
job_state, out = self.scontrol_show_job(jobId)
print(f"Found \"{job_state}\" in JobState")
#if job_state == "FAILED" and job_state_wanted == "COMPLETED":
if job_state in ["PENDING", "COMPLETED"]:
if job_state == "FAILED" and job_state_wanted == "COMPLETED":
# We're in the weeds. Drop a clue.
print("BEGIN scontrol show job")
print(out)
Expand All @@ -132,7 +134,6 @@ def wait_until_job_has_been_x(self, jobId, job_state_wanted, script_path):
cmd = ['docker', 'logs', 'slurmctld']
os.system(' '.join(cmd))
print("END slurmctld log")
assert False

assert job_state == job_state_wanted

Expand Down

0 comments on commit f9f9cc6

Please sign in to comment.