|
Lines 117-122
expect {
Link Here
|
| 117 |
wait |
117 |
wait |
| 118 |
} |
118 |
} |
| 119 |
} |
119 |
} |
|
|
120 |
|
| 120 |
spawn $scontrol show job $job_id2 |
121 |
spawn $scontrol show job $job_id2 |
| 121 |
expect { |
122 |
expect { |
| 122 |
-re "JobId=$job_id2 " { |
123 |
-re "JobId=$job_id2 " { |
|
Lines 131-142
expect {
Link Here
|
| 131 |
wait |
132 |
wait |
| 132 |
} |
133 |
} |
| 133 |
} |
134 |
} |
|
|
135 |
|
| 136 |
|
| 134 |
if {$matches != 2} { |
137 |
if {$matches != 2} { |
| 135 |
send_user "\nFAILURE: scontrol found $matches of 2 jobs\n" |
138 |
send_user "\nFAILURE: scontrol found $matches of 2 jobs\n" |
| 136 |
set exit_code 1 |
139 |
set exit_code 1 |
| 137 |
} |
140 |
} |
| 138 |
|
141 |
|
| 139 |
# |
142 |
# |
|
|
143 |
# using the scontrol -dd option to display more info about job |
| 144 |
# |
| 145 |
send_user "\nGetting more info for job id 1 ($job_id1) with -dd option\n" |
| 146 |
set matches 0 |
| 147 |
spawn $scontrol -dd show job $job_id1 |
| 148 |
expect { |
| 149 |
-re "JobId=$job_id1" { |
| 150 |
incr matches |
| 151 |
exp_continue |
| 152 |
} |
| 153 |
timeout { |
| 154 |
send_user "\n FAILURE scontrol not responding\n" |
| 155 |
set exit_code 1 |
| 156 |
} |
| 157 |
eof { |
| 158 |
wait |
| 159 |
} |
| 160 |
} |
| 161 |
send_user "\nGetting more info for job id 2 ($job_id2) with -dd option\n" |
| 162 |
spawn $scontrol -dd show job $job_id2 |
| 163 |
expect { |
| 164 |
-re "JobId=$job_id2 " { |
| 165 |
incr matches |
| 166 |
exp_continue |
| 167 |
} |
| 168 |
timeout { |
| 169 |
send_user "\nFAILURE: scontrol not responding\n" |
| 170 |
set exit_code 1 |
| 171 |
} |
| 172 |
eof { |
| 173 |
wait |
| 174 |
} |
| 175 |
|
| 176 |
} |
| 177 |
if {$matches != 2} { |
| 178 |
send_user "\nFAILURE: scontrol failed to find matching job ($match != 2)\n" |
| 179 |
set exit_code 1 |
| 180 |
} |
| 181 |
|
| 182 |
# |
| 140 |
# Look at a specific job with scontrol |
183 |
# Look at a specific job with scontrol |
| 141 |
# |
184 |
# |
| 142 |
set matches 0 |
185 |
set matches 0 |
|
Lines 266-269
if {$exit_code == 0} {
Link Here
|
| 266 |
send_user "\nSUCCESS\n" |
309 |
send_user "\nSUCCESS\n" |
| 267 |
} |
310 |
} |
| 268 |
exit $exit_code |
311 |
exit $exit_code |
| 269 |
|
|
|