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
7984d0e7
Commit
7984d0e7
authored
10 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
Minor changes to further bullet proof test (Makes sure sacct doesn't
look at any other day for -D jobs)
parent
57efc873
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/test12.7
+6
-5
6 additions, 5 deletions
testsuite/expect/test12.7
with
6 additions
and
5 deletions
testsuite/expect/test12.7
+
6
−
5
View file @
7984d0e7
...
@@ -58,12 +58,12 @@ proc mod_state { state } {
...
@@ -58,12 +58,12 @@ proc mod_state { state } {
proc check_step { num } {
proc check_step { num } {
global sacct job_id exit_code
global sacct job_id exit_code
set steps 0
set steps 0
spawn $sacct --job=$job_id\.batch -D --noheader --format=jobid
%30
-P
spawn $sacct --job=$job_id\.batch -D
--start=today
--noheader --format=jobid -P
expect {
expect {
-re "batch" {
-re "batch" {
incr steps 1
incr steps
send_user "got here with $steps\n"
exp_continue
exp_continue
}
}
timeout {
timeout {
...
@@ -75,6 +75,7 @@ proc check_step { num } {
...
@@ -75,6 +75,7 @@ proc check_step { num } {
}
}
}
}
if {$num != $steps} {
if {$num != $steps} {
send_user "\nFAILURE: found $steps step(s) when expecting "
send_user "\nFAILURE: found $steps step(s) when expecting "
send_user "$num steps\n"
send_user "$num steps\n"
...
@@ -86,10 +87,10 @@ proc check_sacct_states { states } {
...
@@ -86,10 +87,10 @@ proc check_sacct_states { states } {
global job_id sacct
global job_id sacct
set state_num 0
set state_num 0
spawn $sacct --job=$job_id -D --noheader --format=state -P
spawn $sacct --job=$job_id -D
--start=today
--noheader --format=state -P
expect {
expect {
-re ($states) {
-re ($states) {
incr state_num
1
incr state_num
exp_continue
exp_continue
}
}
timeout {
timeout {
...
...
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