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
902abaa5
Commit
902abaa5
authored
11 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
Make a regression test a bit more robust
parent
33dc30c9
No related branches found
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
+30
-3
30 additions, 3 deletions
testsuite/expect/inc21.30.1
testsuite/expect/test21.30
+5
-1
5 additions, 1 deletion
testsuite/expect/test21.30
with
35 additions
and
4 deletions
testsuite/expect/inc21.30.1
+
30
−
3
View file @
902abaa5
...
...
@@ -34,7 +34,8 @@ proc inc21_30_1 {} {
set job_id1 0
set job_id2 0
spawn $salloc -N1 --account=$acct $srun $bin_sleep 10
set job_id3 0
spawn $salloc -N1 -t1 --account=$acct --exclusive $srun $bin_sleep 10
expect {
-re "Granted job allocation ($number)" {
set job_id1 $expect_out(1,string)
...
...
@@ -53,7 +54,7 @@ proc inc21_30_1 {} {
exit 1
}
spawn $salloc -N
2
--account=$acct $srun $bin_sleep 10
spawn $salloc -N
1 -t1
--account=$acct $srun $bin_sleep 10
expect {
-re "Granted job allocation ($number)" {
set job_id2 $expect_out(1,string)
...
...
@@ -77,10 +78,36 @@ proc inc21_30_1 {} {
exit 1
}
spawn $salloc -N1 -t1 --account=$acct $srun $bin_sleep 10
expect {
-re "Granted job allocation ($number)" {
set job_id3 $expect_out(1,string)
send_user "\njob $job_id3 has been submitted\n"
}
-re "job ($number)" {
set job_id3 $expect_out(1,string)
send_user "\nJob $job_id3 is waiting for resources. This is expected.\n"
}
timeout {
send_user "\nFAILURE: salloc is not reponding\n"
set exit_code 1
}
eof {
wait
}
}
if {$job_id3 == 0} {
send_user "\nFAILURE: jobs were not submitted\n"
cancel_job $job_id1
cancel_job $job_id2
exit 1
}
# checks the state of the job
check_state $job_id
2
check_state $job_id
3
# cancels remaining jobs
cancel_job $job_id1
cancel_job $job_id2
cancel_job $job_id3
}
This diff is collapsed.
Click to expand it.
testsuite/expect/test21.30
+
5
−
1
View file @
902abaa5
...
...
@@ -166,12 +166,16 @@ proc endit { } {
}
#
# Check accounting config
and bail if not foun
d.
# Check accounting config
uration and terminate if limits not enforce
d.
#
if { [test_account_storage] == 0 } {
send_user "\nWARNING: This test can't be run without a usable AccountStorageType\n"
exit 0
}
if { [test_limits_enforced] == 0 } {
send_user "\nWARNING: This test can't be run without enforcing limits\n"
exit 0
}
#gets user
spawn $bin_id -u -n
...
...
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