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
eb435fec
Commit
eb435fec
authored
18 years ago
by
Christopher J. Morrone
Browse files
Options
Downloads
Patches
Plain Diff
Possibly fix test15.5.
parent
723c589a
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/test15.5
+27
-4
27 additions, 4 deletions
testsuite/expect/test15.5
with
27 additions
and
4 deletions
testsuite/expect/test15.5
+
27
−
4
View file @
eb435fec
...
@@ -68,11 +68,14 @@ if {$kill_wait > 60} {
...
@@ -68,11 +68,14 @@ if {$kill_wait > 60} {
# Build input script file
# Build input script file
#
#
make_bash_script $file_in "
make_bash_script $file_in "
trap \"\" SIGINT
$bin_sleep $sleep_time
$srun $bin_sleep $sleep_time
$bin_echo FINI
$bin_echo FINI
"
"
proc date {} {
send_user "local time: [exec date]\n"
}
#
#
# Execute a couple of three minute jobs; one with a one minute time
# Execute a couple of three minute jobs; one with a one minute time
# limit and the other with a four minute time limit. Confirm jobs
# limit and the other with a four minute time limit. Confirm jobs
...
@@ -86,14 +89,24 @@ make_bash_script $file_in "
...
@@ -86,14 +89,24 @@ make_bash_script $file_in "
#
#
set timeout [expr $max_job_delay + $sleep_time]
set timeout [expr $max_job_delay + $sleep_time]
set job_id 0
set job_id 0
set salloc_pid [spawn $salloc -t1 --kill-command ./$file_in]
set salloc_pid [spawn $salloc -t1 --kill-command
=KILL
./$file_in]
expect {
expect {
-re "Granted job allocation ($number)" {
-re "Granted job allocation ($number)" {
set job_id $expect_out(1,string)
set job_id $expect_out(1,string)
date
exp_continue
}
-re "Job allocation time limit to be reached at" {
date
exp_continue
}
-re "Job allocation ($number) has been revoked." {
date
exp_continue
exp_continue
}
}
-re "FINI" {
-re "FINI" {
send_user "\nFAILURE: job time limit not honored\n"
send_user "\nFAILURE: job time limit not honored\n"
date
set exit_code 1
set exit_code 1
exp_continue
exp_continue
}
}
...
@@ -112,13 +125,23 @@ expect {
...
@@ -112,13 +125,23 @@ expect {
set completions 0
set completions 0
set job_id 0
set job_id 0
set salloc_pid [spawn $salloc -t4 --kill-command ./$file_in]
set salloc_pid [spawn $salloc -t4 --kill-command
=KILL
./$file_in]
expect {
expect {
-re "Granted job allocation ($number)" {
-re "Granted job allocation ($number)" {
set job_id $expect_out(1,string)
set job_id $expect_out(1,string)
date
exp_continue
}
-re "Job allocation time limit to be reached at" {
date
exp_continue
}
-re "Job allocation ($number) has been revoked." {
date
exp_continue
exp_continue
}
}
-re "FINI" {
-re "FINI" {
date
incr completions
incr completions
exp_continue
exp_continue
}
}
...
...
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