Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
cf35fe5f
Commit
cf35fe5f
authored
14 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
tweak test for MinJobAge=1 or other small values
parent
f72b1187
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testsuite/expect/test6.12
+20
-7
20 additions, 7 deletions
testsuite/expect/test6.12
with
20 additions
and
7 deletions
testsuite/expect/test6.12
+
20
−
7
View file @
cf35fe5f
...
...
@@ -203,8 +203,13 @@ expect {
}
exec $bin_sleep 5
set found_job 0
set purged_job 0
spawn $squeue --jobs=$job_id --states=cg,cd
expect {
-re "Invalid job id specified" {
set purged_job 1
exp_continue
}
-re "($job_id)" {
set found_job 1
exp_continue
...
...
@@ -214,15 +219,23 @@ expect {
}
}
if {$found_job == 0} {
send_user "\nFAILURE: job not killed on SIGHUP\n"
spawn $scontrol show job $job_id
expect {
eof {
wait
if {$purged_job == 1} {
set min_job_age [get_min_job_age]
}
if {$purged_job == 1 && $min_job_age < 60} {
send_user "\nWARNING: MinJobAge ($min_job_age) configured too low "
send_user "to capture job state after completion\n"
} else {
send_user "\nFAILURE: job not killed on SIGHUP\n"
spawn $scontrol show job $job_id
expect {
eof {
wait
}
}
exec $scancel --quiet $job_id
set exit_code 1
}
exec $scancel --quiet $job_id
set exit_code 1
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment