303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
315 |
316 | |
def test_remote_exec_redirect_multi(self): |
num = 3 |
l = [[] for x in range(num)] |
channels = [self.gw.remote_exec("print %d" % i, |
stdout=l[i].append) |
for i in range(num)] |
for x in channels: |
-> x.waitclose(TESTTIMEOUT) |
|
for i in range(num): |
subl = l[i] |
assert subl |
s = subl[0] |
assert s.strip() == str(i) | |