|
30 | 30 | ############################################################################
|
31 | 31 | source ./globals
|
32 | 32 |
|
33 |
| -set iterations 100 |
34 |
| - |
35 | 33 | if {![is_super_user]} {
|
36 | 34 | skip "This test can't be run except as SlurmUser"
|
37 | 35 | }
|
@@ -73,90 +71,3 @@ if {![regexp -line {^0: (\S+)} $output - host_1]} {
|
73 | 71 | fail "Unable to parse value of SLURMD_NODENAME from srun output"
|
74 | 72 | }
|
75 | 73 | subtest {$host_1 eq $include_node} "Allocation was on included host" "$host_1 !=$include_node"
|
76 |
| - |
77 |
| -# |
78 |
| -# Run three tasks at a time on some node and do so repeatedly |
79 |
| -# This checks for slurmd race conditions |
80 |
| -# The sleep between cycles is to make sure the job step completion |
81 |
| -# logic has time to be processed (slurmd -> slurmctld messages) |
82 |
| -# Note: process output in order of expected completion |
83 |
| -# |
84 |
| -set successes 0 |
85 |
| -for {set inx 0} {$inx < $iterations} {incr inx} { |
86 |
| - exec $bin_sleep 0.25 |
87 |
| - |
88 |
| - spawn $srun -N1 --nodelist=$nodelist_name -t1 -l $bin_printenv SLURMD_NODENAME |
89 |
| - set alloc $spawn_id |
90 |
| - |
91 |
| - spawn $srun -N1 --nodelist=$include_node -t1 -Z $bin_sleep 0.5 |
92 |
| - set noalloc1 $spawn_id |
93 |
| - |
94 |
| - spawn $srun -N1 --nodelist=$include_node -t1 -Z $bin_sleep 0.25 |
95 |
| - set noalloc2 $spawn_id |
96 |
| - |
97 |
| - set timeout 20 |
98 |
| - set spawn_id $noalloc2 |
99 |
| - expect { |
100 |
| - -i $noalloc2 |
101 |
| - -re "error:.*configuring interconnect" { |
102 |
| - log_debug "Can't avoid this possible error" |
103 |
| - exp_continue |
104 |
| - } |
105 |
| - -re "error:" { |
106 |
| - fail "Some error happened" |
107 |
| - } |
108 |
| - timeout { |
109 |
| - fail "srun not responding" |
110 |
| - } |
111 |
| - eof { |
112 |
| - wait |
113 |
| - } |
114 |
| - } |
115 |
| - |
116 |
| - set spawn_id $noalloc1 |
117 |
| - expect { |
118 |
| - -i $noalloc1 |
119 |
| - -re "error:.*configuring interconnect" { |
120 |
| - log_debug "Can't avoid this possible error" |
121 |
| - exp_continue |
122 |
| - } |
123 |
| - -re "error:" { |
124 |
| - fail "Some error happened" |
125 |
| - } |
126 |
| - timeout { |
127 |
| - fail "srun not responding" |
128 |
| - } |
129 |
| - eof { |
130 |
| - wait |
131 |
| - } |
132 |
| - } |
133 |
| - |
134 |
| - set timeout $max_job_delay |
135 |
| - set spawn_id $alloc |
136 |
| - expect { |
137 |
| - -i $alloc |
138 |
| - -re "Invalid node name specified" { |
139 |
| - fail "Invalid node name specified" |
140 |
| - } |
141 |
| - -re "error:.*configuring interconnect" { |
142 |
| - log_debug "Can't avoid this possible error" |
143 |
| - exp_continue |
144 |
| - } |
145 |
| - -re "error:" { |
146 |
| - fail "Some error happened" |
147 |
| - } |
148 |
| - -re "0: ($re_word_str)" { |
149 |
| - set host_0 $expect_out(1,string) |
150 |
| - exp_continue |
151 |
| - } |
152 |
| - timeout { |
153 |
| - fail "srun not responding" |
154 |
| - } |
155 |
| - eof { |
156 |
| - wait |
157 |
| - } |
158 |
| - } |
159 |
| - |
160 |
| - incr successes |
161 |
| -} |
162 |
| -subtest {$successes == $iterations} "Race condition check" "[expr $iterations - $successes] out of $iterations iterations failed" |
0 commit comments