forked from goodboy/tractor
Bleh more nested actor hackin..
parent
ba9c914221
commit
fec2ba004c
|
@ -472,34 +472,40 @@ def test_multi_subactors(
|
||||||
# quit the loop and expect parent to attach
|
# quit the loop and expect parent to attach
|
||||||
child.sendline('q')
|
child.sendline('q')
|
||||||
|
|
||||||
if _ci_env and not ctlc:
|
try:
|
||||||
try:
|
child.expect(r"\(Pdb\+\+\)")
|
||||||
child.expect(r"\(Pdb\+\+\)")
|
except TIMEOUT:
|
||||||
except TIMEOUT:
|
if _ci_env and not ctlc:
|
||||||
# in ci seems like this can sometimes just result
|
raise
|
||||||
# in full tree death?
|
|
||||||
print('tree died?')
|
|
||||||
|
|
||||||
else:
|
# in ci seems like this can sometimes just result
|
||||||
before = str(child.before.decode())
|
# in full tree death?
|
||||||
assert_before(child, [
|
print('tree died?')
|
||||||
# debugger attaches to root
|
|
||||||
"Attaching to pdb in crashed actor: ('root'",
|
|
||||||
|
|
||||||
# expect a multierror with exceptions for each sub-actor
|
else:
|
||||||
"RemoteActorError: ('breakpoint_forever'",
|
before = str(child.before.decode())
|
||||||
"RemoteActorError: ('name_error'",
|
assert_before(child, [
|
||||||
"RemoteActorError: ('spawn_error'",
|
# debugger attaches to root
|
||||||
"RemoteActorError: ('name_error_1'",
|
"Attaching to pdb in crashed actor: ('root'",
|
||||||
'bdb.BdbQuit',
|
|
||||||
])
|
# expect a multierror with exceptions for each sub-actor
|
||||||
|
"RemoteActorError: ('breakpoint_forever'",
|
||||||
|
"RemoteActorError: ('name_error'",
|
||||||
|
"RemoteActorError: ('spawn_error'",
|
||||||
|
"RemoteActorError: ('name_error_1'",
|
||||||
|
'bdb.BdbQuit',
|
||||||
|
])
|
||||||
|
|
||||||
if ctlc:
|
if ctlc:
|
||||||
do_ctlc(child)
|
do_ctlc(child)
|
||||||
|
|
||||||
# process should exit
|
# process should exit
|
||||||
child.sendline('c')
|
child.sendline('c')
|
||||||
child.expect(pexpect.EOF)
|
|
||||||
|
try:
|
||||||
|
child.expect(pexpect.EOF)
|
||||||
|
except TIMEOUT:
|
||||||
|
child.expect(r"\(Pdb\+\+\)")
|
||||||
|
|
||||||
# repeat of previous multierror for final output
|
# repeat of previous multierror for final output
|
||||||
assert_before(child, [
|
assert_before(child, [
|
||||||
|
|
Loading…
Reference in New Issue