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
0e147eb8
Commit
0e147eb8
authored
18 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Add some more error checking.
parent
ac864b8a
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/test1.30
+15
-2
15 additions, 2 deletions
testsuite/expect/test1.30
with
15 additions
and
2 deletions
testsuite/expect/test1.30
+
15
−
2
View file @
0e147eb8
...
@@ -41,12 +41,20 @@ if { [test_xcpu] } {
...
@@ -41,12 +41,20 @@ if { [test_xcpu] } {
exit 0
exit 0
}
}
# NOTE: One CPU per task emulation is not scalable to do via srun
# so we use "--share" as a no-op for this argument
if { [test_bluegene] } {
set srun_opts "--share"
} else {
set srun_opts "-c1"
}
#
#
# Spawn a srun immediate jobs with ever larger node counts
# Spawn a srun immediate jobs with ever larger node counts
#
#
set timeout
60
set timeout
$max_job_delay
for {set node_cnt 1} {$node_cnt > 0} {set node_cnt [expr $node_cnt * 2]} {
for {set node_cnt 1} {$node_cnt > 0} {set node_cnt [expr $node_cnt * 2]} {
spawn $srun --immediate -N$node_cnt
-c1
-t2 $bin_hostname
spawn $srun --immediate -N$node_cnt
$srun_opts
-t2 $bin_hostname
expect {
expect {
-re "Immediate execution impossible" {
-re "Immediate execution impossible" {
send_user "This error is expected, no worries\n"
send_user "This error is expected, no worries\n"
...
@@ -63,6 +71,11 @@ for {set node_cnt 1} {$node_cnt > 0} {set node_cnt [expr $node_cnt * 2]} {
...
@@ -63,6 +71,11 @@ for {set node_cnt 1} {$node_cnt > 0} {set node_cnt [expr $node_cnt * 2]} {
set node_cnt 0
set node_cnt 0
exp_continue
exp_continue
}
}
-re "error" {
send_user "\nFAILURE: some error happened\n"
set exit_code 1
exp_continue
}
timeout {
timeout {
send_user "\nFAILURE: srun not responding\n"
send_user "\nFAILURE: srun not responding\n"
set exit_code 1
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