Use CHROMEDRIVER_BIN variable instead of hardcoded path

This commit is contained in:
AndreyMaslennikov
2019-12-19 17:11:40 +03:00
parent 819581eed2
commit d5bbda1101

View File

@@ -37,9 +37,11 @@ echo "Downloading chromedriver v$LATEST_CHROMEDRIVER_VERSION..."
wget "https://chromedriver.storage.googleapis.com/$LATEST_CHROMEDRIVER_VERSION/chromedriver_linux64.zip" wget "https://chromedriver.storage.googleapis.com/$LATEST_CHROMEDRIVER_VERSION/chromedriver_linux64.zip"
unzip chromedriver_linux64.zip unzip chromedriver_linux64.zip
rm chromedriver_linux64.zip rm chromedriver_linux64.zip
mv "chromedriver" "/usr/bin/chromedriver"
chown root:root /usr/bin/chromedriver CHROMEDRIVER_BIN="/usr/bin/chromedriver"
chmod +x /usr/bin/chromedriver mv "chromedriver" $CHROMEDRIVER_BIN
chown root:root $CHROMEDRIVER_BIN
chmod +x $CHROMEDRIVER_BIN
# Run tests to determine that the chromedriver installed as expected # Run tests to determine that the chromedriver installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work" echo "Testing to make sure that script performed as expected, and basic scenarios work"