diff --git a/tests/installation/fixture-scripts/download-chromedriver.js b/tests/installation/fixture-scripts/download-chromedriver.js index ee57b62a02..e8bf936e8c 100644 --- a/tests/installation/fixture-scripts/download-chromedriver.js +++ b/tests/installation/fixture-scripts/download-chromedriver.js @@ -27,8 +27,7 @@ const fs = require('fs'); execSync(`curl ${chromeDriverURL} --output ${zip} --silent`); console.log(`Downloaded ${zip}`); - execSync(`unzip ${zip}`, { cwd: dir }); + execSync(`unzip -j ${zip}`, { cwd: dir }); console.log(`Unzipped ${zip}`); - - fs.renameSync(`chromedriver-${currentPlatform}`, `chromedriver`); + fs.rmSync(zip); })();