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
8adeecd7
Commit
8adeecd7
authored
9 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
Fix test to check for failure on the array
parent
4aa2e3c2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testsuite/expect/inc21.21_tests
+58
-4
58 additions, 4 deletions
testsuite/expect/inc21.21_tests
with
58 additions
and
4 deletions
testsuite/expect/inc21.21_tests
+
58
−
4
View file @
8adeecd7
...
...
@@ -286,6 +286,9 @@ proc inc21_21_submit_test { limit } {
[array get acct_mod_assoc_test_vals] \
[array get acct_mod_acct_vals]]
if { $exit_code } {
# Clear the limits
set acct_mod_assoc_test_vals($limit_job) "-1"
set acct_mod_assoc_test_vals($limit_sub) "-1"
return $exit_code
}
...
...
@@ -336,11 +339,16 @@ proc inc21_21_submit_test { limit } {
set exit_code 1
break
}
# We need to sleep because of the way the scheduler works
# if we don't sleep then we could
sleep 1
}
if { $exit_code } {
# Clear the limits
set acct_mod_assoc_test_vals($limit_job) "-1"
set acct_mod_assoc_test_vals($limit_sub) "-1"
return $exit_code
}
...
...
@@ -377,12 +385,12 @@ proc inc21_21_submit_test { limit } {
}
if { $exit_code } {
# Clear the limits
set acct_mod_assoc_test_vals($limit_job) "-1"
set acct_mod_assoc_test_vals($limit_sub) "-1"
return $exit_code
}
# sleep the Schedule cycle default is 4
sleep 4
set matches 0
set mypid [spawn $squeue -A$ta -h -o "\%i \%t \%r"]
expect {
...
...
@@ -416,6 +424,17 @@ proc inc21_21_submit_test { limit } {
}
}
if { $matches != 4 } {
send_user "\nFAILURE: jobs are not in the expected state "
send_user "expected ($matches != 4)"
print_err $limit "inc21_21_submit_test"
set exit_code 1
# Clear the limits
set acct_mod_assoc_test_vals($limit_job) "-1"
set acct_mod_assoc_test_vals($limit_sub) "-1"
return $exit_code
}
# Test to make sure that the grpsubmit and maxsubmit
# are enforced with job arrays
...
...
@@ -460,10 +479,16 @@ proc inc21_21_submit_test { limit } {
break
}
# We need to sleep because of the way the scheduler works
# if we don't sleep then we could
sleep 1
}
if { $exit_code } {
# Clear the limits
set acct_mod_assoc_test_vals($limit_job) "-1"
set acct_mod_assoc_test_vals($limit_sub) "-1"
return $exit_code
}
...
...
@@ -500,9 +525,38 @@ proc inc21_21_submit_test { limit } {
}
if { $exit_code } {
# Clear the limits
set acct_mod_assoc_test_vals($limit_job) "-1"
set acct_mod_assoc_test_vals($limit_sub) "-1"
return $exit_code
}
set matches 0
set mypid [spawn $squeue -A$ta -h -o "\%i \%t \%r"]
expect {
-re "($job_id(2)|$job_id(3))_\\\[0\\\].PD.AssocMaxJobsLimit" {
incr matches
exp_continue
}
-re "($job_id(2)|$job_id(3))_\\\[0\\\].PD.AssocGrpJobsLimit" {
incr matches
exp_continue
}
-re "($job_id(0)|$job_id(1))_0.R.None" {
incr matches
exp_continue
}
timeout {
send_user "\nFAILURE: squeue not responding "
print_err $limit "inc21_21_submit_test"
slow_kill $mypid
set exit_code 1
}
eof {
wait
}
}
spawn $scancel --quiet --account=$ta
expect {
eof {
...
...
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