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
eba3d273
Commit
eba3d273
authored
8 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
Harden job resize test
bug 3498
parent
2c064672
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/test2.14
+15
-3
15 additions, 3 deletions
testsuite/expect/test2.14
with
15 additions
and
3 deletions
testsuite/expect/test2.14
+
15
−
3
View file @
eba3d273
...
@@ -74,6 +74,7 @@ make_bash_script $file_in "
...
@@ -74,6 +74,7 @@ make_bash_script $file_in "
. slurm_job_\${SLURM_JOBID}_resize.sh
. slurm_job_\${SLURM_JOBID}_resize.sh
$scontrol show job \${SLURM_JOBID} >>${file_out2}
$scontrol show job \${SLURM_JOBID} >>${file_out2}
$srun -l $bin_id
$srun -l $bin_id
echo SLURM_NNODES=\${SLURM_NNODES}
$bin_rm -f slurm_job_\${SLURM_JOBID}_resize.csh
$bin_rm -f slurm_job_\${SLURM_JOBID}_resize.csh
$bin_rm -f slurm_job_\${SLURM_JOBID}_resize.sh"
$bin_rm -f slurm_job_\${SLURM_JOBID}_resize.sh"
...
@@ -108,6 +109,7 @@ if {[wait_for_file $file_out] != 0} {
...
@@ -108,6 +109,7 @@ if {[wait_for_file $file_out] != 0} {
exit 1
exit 1
}
}
set task_count 0
set task_count 0
set node_count 0
spawn $bin_cat $file_out
spawn $bin_cat $file_out
expect {
expect {
-re "slurm_allocation_lookup_lite" {
-re "slurm_allocation_lookup_lite" {
...
@@ -122,14 +124,24 @@ expect {
...
@@ -122,14 +124,24 @@ expect {
incr task_count
incr task_count
exp_continue
exp_continue
}
}
-re "SLURM_NNODES=($number)" {
set node_count $expect_out(1,string)
exp_continue
}
eof {
eof {
wait
wait
}
}
}
}
if {$task_count != 3} {
set task_target [expr $node_cnt + 1]
send_user "\nFAILURE: Invalid task count ($task_count != 3)\n\n\n"
if {$task_count != $task_target} {
send_user "\nFAILURE: Invalid task count ($task_count != $task_target)\n\n\n"
set exit_code 1
set exit_code 1
} elseif (!$exit_code) {
}
if {$node_count != 1} {
send_user "\nFAILURE: Invalid node count ($node_count != 1)\n\n\n"
set exit_code 1
}
if {$exit_code == 0} {
send_user "\nSo far, so good...\n\n\n"
send_user "\nSo far, so good...\n\n\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