1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[lit] Only update specific fields from remote test object

Don't update whole test object from the remote (pickled) finished test
object.  Doing so also changes the config and suite members, which we
want to avoid.
This commit is contained in:
Julian Lettner 2020-05-01 09:51:46 -07:00
parent c626aa36ec
commit 63e5e7b26a

View File

@ -99,9 +99,11 @@ class Run(object):
# Update local test object "in place" from remote test object. This
# ensures that the original test object which is used for printing test
# results reflect the changes.
# results reflects the changes.
def _update_test(self, local_test, remote_test):
local_test.__dict__.update(remote_test.__dict__)
# Needed for getMissingRequiredFeatures()
local_test.requires = remote_test.requires
local_test.result = remote_test.result
# TODO(yln): interferes with progress bar
# Some tests use threads internally, and at least on Linux each of these