[windows] Add retries to cope with linker/filesystem flakiness

Hopefully this fixes PR24554, and we receive less build spam.

llvm-svn: 246708
This commit is contained in:
Reid Kleckner 2015-09-02 20:45:36 +00:00
parent 905ad3442d
commit b6f39cbba2

View File

@ -160,3 +160,8 @@ except OSError:
if re.search(r'ON', llvm_config_cmd.stdout.read().decode('ascii')):
config.available_features.add('asserts')
llvm_config_cmd.wait()
# Sanitizer tests tend to be flaky on Windows due to PR24554, so add some
# retries. We don't do this on otther platforms because it's slower.
if platform.system() == 'Windows':
config.test_retry_attempts = 2