mirror of
https://github.com/facebook/sapling.git
synced 2024-12-29 08:02:24 +03:00
run-tests: silent some errors from run-tests itself
Summary: I have seen errors like: Traceback (most recent call last): File "/usr/lib64/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib64/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "./run-tests.py", line 2636, in job del runningtests[test.name] File "/usr/lib64/python2.7/collections.py", line 68, in __delitem__ dict_delitem(self, key) KeyError: 'test-empty-t.py' It's not fatal and is caused by race condition. So let's just ignore it. Reviewed By: ikostia Differential Revision: D18538388 fbshipit-source-id: 85e38578bea4c9b27439e6f10abb7619a8bb9238
This commit is contained in:
parent
b4f7ff744e
commit
13a6237c1d
@ -2647,7 +2647,10 @@ class TestSuite(unittest.TestSuite):
|
||||
done.put(("!", test, "run-test raised an error, see traceback"))
|
||||
raise
|
||||
finally:
|
||||
del runningtests[test.name]
|
||||
try:
|
||||
del runningtests[test.name]
|
||||
except KeyError:
|
||||
pass
|
||||
try:
|
||||
channels[channel] = ""
|
||||
except IndexError:
|
||||
|
Loading…
Reference in New Issue
Block a user