Skip to content

Commit 70e9879

Browse files
committed
Make suite_result creation in update_suite parallel-safe
1 parent 13e2a97 commit 70e9879

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/update_suite.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@ def clearline
8686
end
8787

8888
$testresults = File.expand_path("tests/suite_result")
89-
Dir.mkdir($testresults) unless Dir.exist?($testresults)
89+
begin
90+
Dir.mkdir($testresults)
91+
rescue
92+
# exited or was created in parallel
93+
end
9094
testfiles = if incremental then
9195
File.expand_path("tests/incremental")
9296
else

0 commit comments

Comments
 (0)