diff options
Diffstat (limited to 'deps/v8/test/mozilla/testcfg.py')
-rw-r--r-- | deps/v8/test/mozilla/testcfg.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/deps/v8/test/mozilla/testcfg.py b/deps/v8/test/mozilla/testcfg.py index 775a239f0..70a7ac663 100644 --- a/deps/v8/test/mozilla/testcfg.py +++ b/deps/v8/test/mozilla/testcfg.py @@ -132,8 +132,11 @@ class MozillaTestSuite(testsuite.TestSuite): # If we have a local archive file with the test data, extract it. directory_name = "data" + directory_name_old = "data.old" if os.path.exists(directory_name): - os.rename(directory_name, "data.old") + if os.path.exists(directory_name_old): + shutil.rmtree(directory_name_old) + os.rename(directory_name, directory_name_old) archive_file = "downloaded_%s.tar.gz" % MOZILLA_VERSION if os.path.exists(archive_file): with tarfile.open(archive_file, "r:gz") as tar: |