Show More
@@ -159,7 +159,7 b' def _posixworker(ui, func, staticargs, a' | |||||
159 | os._exit(255) |
|
159 | os._exit(255) | |
160 | except: # never return, therefore no re-raises |
|
160 | except: # never return, therefore no re-raises | |
161 | try: |
|
161 | try: | |
162 | ui.traceback() |
|
162 | ui.traceback(force=True) | |
163 | ui.flush() |
|
163 | ui.flush() | |
164 | finally: |
|
164 | finally: | |
165 | os._exit(255) |
|
165 | os._exit(255) |
@@ -13,12 +13,18 b' Test UI worker interaction' | |||||
13 | > # by first worker for test stability |
|
13 | > # by first worker for test stability | |
14 | > raise error.Abort('known exception') |
|
14 | > raise error.Abort('known exception') | |
15 | > return runme(ui, []) |
|
15 | > return runme(ui, []) | |
|
16 | > def exc(ui, args): | |||
|
17 | > if args[0] == 0: | |||
|
18 | > # by first worker for test stability | |||
|
19 | > raise Exception('unknown exception') | |||
|
20 | > return runme(ui, []) | |||
16 | > def runme(ui, args): |
|
21 | > def runme(ui, args): | |
17 | > for arg in args: |
|
22 | > for arg in args: | |
18 | > ui.status('run\n') |
|
23 | > ui.status('run\n') | |
19 | > yield 1, arg |
|
24 | > yield 1, arg | |
20 | > functable = { |
|
25 | > functable = { | |
21 | > 'abort': abort, |
|
26 | > 'abort': abort, | |
|
27 | > 'exc': exc, | |||
22 | > 'runme': runme, |
|
28 | > 'runme': runme, | |
23 | > } |
|
29 | > } | |
24 | > cmdtable = {} |
|
30 | > cmdtable = {} | |
@@ -76,3 +82,9 b' Known exception should be caught, but pr' | |||||
76 | > test 100000.0 abort --traceback 2>&1 | grep '^Traceback' |
|
82 | > test 100000.0 abort --traceback 2>&1 | grep '^Traceback' | |
77 | Traceback (most recent call last): |
|
83 | Traceback (most recent call last): | |
78 | Traceback (most recent call last): |
|
84 | Traceback (most recent call last): | |
|
85 | ||||
|
86 | Traceback must be printed for unknown exceptions | |||
|
87 | ||||
|
88 | $ hg --config "extensions.t=$abspath" --config 'worker.numcpus=2' \ | |||
|
89 | > test 100000.0 exc 2>&1 | grep '^Traceback' | |||
|
90 | Traceback (most recent call last): |
General Comments 0
You need to be logged in to leave comments.
Login now