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
dbabd198
Commit
dbabd198
authored
11 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
handle failures in test better
parent
88f0fa1c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
testsuite/expect/inc21.30.1
+4
-4
4 additions, 4 deletions
testsuite/expect/inc21.30.1
testsuite/expect/test21.30
+49
-43
49 additions, 43 deletions
testsuite/expect/test21.30
with
53 additions
and
47 deletions
testsuite/expect/inc21.30.1
+
4
−
4
View file @
dbabd198
...
...
@@ -32,6 +32,7 @@ proc inc21_30_1 {} {
#test GrpNode limit
global srun salloc acct bin_sleep jobmatch job_id1 job_id2 number
global exit_code
set jobmatch 0
spawn $salloc -N1 --account=$acct $srun $bin_sleep 10
...
...
@@ -43,7 +44,7 @@ proc inc21_30_1 {} {
}
timeout {
send_user "\nFAILURE: salloc is not reponding\n"
exit
1
set exit_code
1
}
eof {
wait
...
...
@@ -59,7 +60,7 @@ proc inc21_30_1 {} {
}
timeout {
send_user "\nFAILURE: salloc is not reponding\n"
exit
1
set exit_code
1
}
eof {
wait
...
...
@@ -68,7 +69,7 @@ proc inc21_30_1 {} {
if {$jobmatch==0} {
send_user "\nFAILURE: jobs were not submitted\n"
exit
1
set exit_code
1
}
# checks the state of the job
...
...
@@ -77,5 +78,4 @@ proc inc21_30_1 {} {
#cancels remaining jobs
cancel_job $job_id1
cancel_job $job_id2
}
This diff is collapsed.
Click to expand it.
testsuite/expect/test21.30
+
49
−
43
View file @
dbabd198
...
...
@@ -120,6 +120,51 @@ proc mod_qos { node cpu job sub mcpu mnode mjobs mjobsub } {
}
proc endit { } {
global sacctmgr qostest acct test_id exit_code
# delete qos
spawn $sacctmgr -i delete qos $qostest
expect {
-re "Deleting QOS(s)" {
exp_continue
}
-re "Error" {
send_user "\nFAILURE: QOS was not deleted\n"
}
timeout {
send_user "\nFAILURE: sacctmgr is not responding\n"
}
eof {
wait
}
}
#delete account
spawn $sacctmgr -i delete account $acct
expect {
-re "Deleting accounts" {
exp_continue
}
-re "Error" {
send_user "\nFAILURE: account was not deleted\n"
set exit_code 1
}
timeout {
send_user "\nFAILURE: sacctmgr is not responding\n"
set exit_code 1
}
eof {
wait
}
}
if {$exit_code == 0} {
print_success $test_id
}
exit $exit_code
}
#gets user
spawn $bin_id -u -n
expect {
...
...
@@ -193,7 +238,9 @@ mod_qos $grn_num -1 -1 -1 -1 -1 -1 -1
sleep 5
#test GrpNode limit
inc21_30_1
if {$exit_code != 0} {
endit
}
mod_qos -1 $grcpu_num -1 -1 -1 -1 -1 -1
...
...
@@ -239,45 +286,4 @@ sleep 5
#test MaxJobsSubmits limit
inc21_30_8
# delete qos
spawn $sacctmgr -i delete qos $qostest
expect {
-re "Deleting QOS(s)" {
exp_continue
}
-re "Error" {
send_user "\nFAILURE: QOS was not deleted\n"
}
timeout {
send_user "\nFAILURE: sacctmgr is not responding\n"
}
eof {
wait
}
}
#delete account
spawn $sacctmgr -i delete account $acct
expect {
-re "Deleting accounts" {
exp_continue
}
-re "Error" {
send_user "\nFAILURE: account was not deleted\n"
set exit_code 1
}
timeout {
send_user "\nFAILURE: sacctmgr is not responding\n"
set exit_code 1
}
eof {
wait
}
}
if {$exit_code==0} {
print_success $test_id
}
exit $exit_code
endit
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