Skip to content

Commit 7da9a18

Browse files
authored
Merge pull request swiftlang#92 from graydon/run-cperf-less-crashy-clean
[run_cperf] Only rmtree if workspace exists.
2 parents 9ab3a98 + 193b596 commit 7da9a18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run_cperf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def get_workspace_for_instance(instance, args):
3434

3535

3636
def setup_workspace(instance, workspace, args):
37-
if args.clean:
37+
if args.clean and os.path.exists(workspace):
3838
shutil.rmtree(workspace)
3939
if not os.path.exists(workspace):
4040
os.makedirs(workspace)

0 commit comments

Comments
 (0)