##// END OF EJS Templates
test-worker: capture tracebacks more reliably...
Jun Wu -
r32113:9f0c055e default
parent child Browse files
Show More
@@ -81,15 +81,15 b' Known exception should be caught, but pr'
81 [255]
81 [255]
82
82
83 $ hg --config "extensions.t=$abspath" --config 'worker.numcpus=2' \
83 $ hg --config "extensions.t=$abspath" --config 'worker.numcpus=2' \
84 > test 100000.0 abort --traceback 2>&1 | grep '^Traceback'
84 > test 100000.0 abort --traceback 2>&1 | egrep '^(SystemExit|Abort)'
85 Traceback (most recent call last):
85 Abort: known exception
86 Traceback (most recent call last):
86 SystemExit: 255
87
87
88 Traceback must be printed for unknown exceptions
88 Traceback must be printed for unknown exceptions
89
89
90 $ hg --config "extensions.t=$abspath" --config 'worker.numcpus=2' \
90 $ hg --config "extensions.t=$abspath" --config 'worker.numcpus=2' \
91 > test 100000.0 exc 2>&1 | grep '^Traceback'
91 > test 100000.0 exc 2>&1 | grep '^Exception'
92 Traceback (most recent call last):
92 Exception: unknown exception
93
93
94 Workers should not do cleanups in all cases
94 Workers should not do cleanups in all cases
95
95
General Comments 0
You need to be logged in to leave comments. Login now