Increase stablility of run-benchmark script
[WebKit.git] / Tools / Scripts / webkitpy / benchmark_runner / benchmark_builder / generic_benchmark_builder.py
index be5487999eca9635a1be08d116f238af6b86f979..6ac26f34aadd3bf6068508f3783af5750692bf55 100644 (file)
@@ -6,7 +6,7 @@ import os
 import shutil
 import subprocess
 
 import shutil
 import subprocess
 
-from webkitpy.benchmark_runner.utils import getPathFromProjectRoot
+from webkitpy.benchmark_runner.utils import getPathFromProjectRoot, forceRemove
 
 
 _log = logging.getLogger(__name__)
 
 
 _log = logging.getLogger(__name__)
@@ -40,4 +40,4 @@ class GenericBenchmarkBuilder(object):
     def clean(self):
         _log.info('Cleanning Benchmark')
         if self.webRoot:
     def clean(self):
         _log.info('Cleanning Benchmark')
         if self.webRoot:
-            shutil.rmtree(self.webRoot)
+            forceRemove(self.webRoot)