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
6973b97c
Commit
6973b97c
authored
15 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
remove the 3 jobs we don't need
parent
d51df350
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/test25.1
+41
-28
41 additions, 28 deletions
testsuite/expect/test25.1
with
41 additions
and
28 deletions
testsuite/expect/test25.1
+
41
−
28
View file @
6973b97c
...
@@ -56,6 +56,27 @@ if { [string compare [priority_type] multifactor] } {
...
@@ -56,6 +56,27 @@ if { [string compare [priority_type] multifactor] } {
#
#
make_bash_script $file_in "$bin_sleep 600"
make_bash_script $file_in "$bin_sleep 600"
proc def_node_cnt { } {
global sinfo alpha_numeric_under number exit_code
set node_cnt 1
spawn $sinfo -h -o "name=%20P node_cnt=%D"
expect {
-re "name=($alpha_numeric_under) *node_cnt=($number)" {
set node_cnt $expect_out(2,string)
exp_continue
}
timeout {
send_user "\nFAILURE: sbatch not responding\n"
set exit_code 1
}
eof {
wait
}
}
return $node_cnt
}
################################################################
################################################################
#
#
# Proc: sub_job
# Proc: sub_job
...
@@ -66,13 +87,13 @@ make_bash_script $file_in "$bin_sleep 600"
...
@@ -66,13 +87,13 @@ make_bash_script $file_in "$bin_sleep 600"
#
#
################################################################
################################################################
proc sub_job { } {
proc sub_job {
node_cnt
} {
global exit_code file_in number sbatch test_id
global exit_code file_in number sbatch test_id
set file_in test${test_id}.input
set file_in test${test_id}.input
set job_id 0
set job_id 0
spawn $sbatch --output=/dev/null --error=/dev/null --exclusive $file_in
spawn $sbatch --output=/dev/null --error=/dev/null
-N $node_cnt
--exclusive $file_in
expect {
expect {
-re "Submitted batch job ($number)" {
-re "Submitted batch job ($number)" {
set job_id $expect_out(1,string)
set job_id $expect_out(1,string)
...
@@ -614,20 +635,15 @@ proc sprio_args { soption sargs jobid} {
...
@@ -614,20 +635,15 @@ proc sprio_args { soption sargs jobid} {
################################################################
################################################################
# Start a group of jobs
# Start a group of jobs
set jobid1 [sub_job]
set node_cnt [def_node_cnt]
set jobid2 [sub_job]
set jobid1 [sub_job $node_cnt]
set jobid3 [sub_job]
set jobid2 [sub_job $node_cnt]
set jobid4 [sub_job]
set jobid5 [sub_job]
if {$exit_code != 0} {
if {$exit_code != 0} {
cancel_job $jobid1
cancel_job $jobid1
cancel_job $jobid2
cancel_job $jobid2
cancel_job $jobid3
cancel_job $jobid4
cancel_job $jobid5
exit $exit_code
exit $exit_code
}
}
send_user "\nSubmitted
5
jobs successfully\n\n"
send_user "\nSubmitted
2
jobs successfully\n\n"
#
#
# Collect uid
# Collect uid
...
@@ -637,20 +653,20 @@ set nuid [get_my_nuid]
...
@@ -637,20 +653,20 @@ set nuid [get_my_nuid]
#
#
# Start testing sprio options and arguments
# Start testing sprio options and arguments
#
#
sprio_args -h -j $jobid
5
sprio_args -h -j $jobid
2
sprio_args --noheader -j $jobid
5
sprio_args --noheader -j $jobid
2
sprio_args -j -j $jobid
5
sprio_args -j -j $jobid
2
sprio_args --jobs -j $jobid
5
sprio_args --jobs -j $jobid
2
sprio_args -l -j $jobid
5
sprio_args -l -j $jobid
2
sprio_args --long -j $jobid
5
sprio_args --long -j $jobid
2
sprio_args -n -j $jobid
5
sprio_args -n -j $jobid
2
sprio_args --norm -j $jobid
5
sprio_args --norm -j $jobid
2
sprio_args -o -j $jobid
5
sprio_args -o -j $jobid
2
sprio_args --format -j $jobid
5
sprio_args --format -j $jobid
2
sprio_args -u $nuid $jobid
5
sprio_args -u $nuid $jobid
2
sprio_args --user= $nuid $jobid
5
sprio_args --user= $nuid $jobid
2
sprio_args -v -j $jobid
5
sprio_args -v -j $jobid
2
sprio_args -verbose -j $jobid
5
sprio_args -verbose -j $jobid
2
sprio_opt -V
sprio_opt -V
sprio_opt --version
sprio_opt --version
sprio_opt -w
sprio_opt -w
...
@@ -663,9 +679,6 @@ sprio_opt --usage
...
@@ -663,9 +679,6 @@ sprio_opt --usage
#
#
cancel_job $jobid1
cancel_job $jobid1
cancel_job $jobid2
cancel_job $jobid2
cancel_job $jobid3
cancel_job $jobid4
cancel_job $jobid5
#
#
# Exit with code as appropriate
# Exit with code as appropriate
...
...
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