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
1638fa6b
Commit
1638fa6b
authored
10 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
Minor test fixes to work under all cases.
parent
dfb0739e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
testsuite/expect/test1.91
+24
-0
24 additions, 0 deletions
testsuite/expect/test1.91
testsuite/expect/test2.18
+1
-1
1 addition, 1 deletion
testsuite/expect/test2.18
testsuite/expect/test2.19
+1
-1
1 addition, 1 deletion
testsuite/expect/test2.19
with
26 additions
and
2 deletions
testsuite/expect/test1.91
+
24
−
0
View file @
1638fa6b
...
@@ -207,6 +207,10 @@ expect {
...
@@ -207,6 +207,10 @@ expect {
slow_kill $salloc_pid
slow_kill $salloc_pid
exit 1
exit 1
}
}
-re "$srun" {
# just so we don't grab the srun call
exp_continue;
}
-re $prompt
-re $prompt
}
}
...
@@ -232,6 +236,10 @@ expect {
...
@@ -232,6 +236,10 @@ expect {
send_user "or failure to recognize prompt\n"
send_user "or failure to recognize prompt\n"
set exit_code 1
set exit_code 1
}
}
-re "$srun" {
# just so we don't grab the srun call
exp_continue;
}
-re $prompt
-re $prompt
}
}
if {$task_mask != $expected_mask} {
if {$task_mask != $expected_mask} {
...
@@ -274,6 +282,10 @@ while {$this_cnt <= $num_sockets} {
...
@@ -274,6 +282,10 @@ while {$this_cnt <= $num_sockets} {
send_user "or failure to recognize prompt\n"
send_user "or failure to recognize prompt\n"
set exit_code 1
set exit_code 1
}
}
-re "$srun" {
# just so we don't grab the srun call
exp_continue;
}
-re $prompt
-re $prompt
}
}
...
@@ -324,6 +336,10 @@ while {$this_cnt <= $num_cores} {
...
@@ -324,6 +336,10 @@ while {$this_cnt <= $num_cores} {
send_user "or failure to recognize prompt\n"
send_user "or failure to recognize prompt\n"
set exit_code 1
set exit_code 1
}
}
-re "$srun" {
# just so we don't grab the srun call
exp_continue;
}
-re $prompt
-re $prompt
}
}
...
@@ -374,6 +390,10 @@ while {$this_cnt <= $num_threads} {
...
@@ -374,6 +390,10 @@ while {$this_cnt <= $num_threads} {
send_user "or failure to recognize prompt\n"
send_user "or failure to recognize prompt\n"
set exit_code 1
set exit_code 1
}
}
-re "$srun" {
# just so we don't grab the srun call
exp_continue;
}
-re $prompt
-re $prompt
}
}
...
@@ -423,6 +443,10 @@ while {$this_cnt <= $task_cnt} {
...
@@ -423,6 +443,10 @@ while {$this_cnt <= $task_cnt} {
send_user "or failure to recognize prompt\n"
send_user "or failure to recognize prompt\n"
set exit_code 1
set exit_code 1
}
}
-re "$srun" {
# just so we don't grab the srun call
exp_continue;
}
-re $prompt
-re $prompt
}
}
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test2.18
+
1
−
1
View file @
1638fa6b
...
@@ -158,7 +158,7 @@ proc test_part { acct part acct_con } {
...
@@ -158,7 +158,7 @@ proc test_part { acct part acct_con } {
set sub_job 0
set sub_job 0
spawn $srun -A $acct -p $part hostname
spawn $srun
-I
-A $acct -p $part hostname
expect {
expect {
-re "$host_name" {
-re "$host_name" {
set sub_job 1
set sub_job 1
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test2.19
+
1
−
1
View file @
1638fa6b
...
@@ -188,7 +188,7 @@ proc test_part {acct qos part qos_con } {
...
@@ -188,7 +188,7 @@ proc test_part {acct qos part qos_con } {
global srun host_name part_name exit_code
global srun host_name part_name exit_code
set sub_job 0
set sub_job 0
spawn $srun -A $acct --qos $qos -p $part hostname
spawn $srun
-I
-A $acct --qos $qos -p $part hostname
expect {
expect {
-re "$host_name" {
-re "$host_name" {
set sub_job 1
set sub_job 1
...
...
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