one cpu on windows for executing tests

This commit is contained in:
Benjamin Sergeant 2019-05-17 15:45:31 -07:00
parent 83c261977d
commit aa3f201ced

View File

@ -461,6 +461,11 @@ def main():
args = parser.parse_args()
# Windows does not play nice with multiple files opened by different processes
# "The process cannot access the file because it is being used by another process"
if platform.system() == 'Windows':
args.cpu_count = 1
# Default sanitizer is tsan
sanitizer = args.sanitizer