Fix $PATH for chromium-chromedirver 01/79601/1
authorDmitry Puzikov <dmitry.puzikov@tieto.com>
Mon, 4 Mar 2019 10:06:16 +0000 (11:06 +0100)
committerDmitry Puzikov <dmitry.puzikov@tieto.com>
Mon, 4 Mar 2019 10:20:03 +0000 (11:20 +0100)
Apt installs chromium-chromedriver into
/usr/lib/chromium-browser/chromedriver and
doesnt add to $PATH so need to add it explicitly.

Change-Id: I9d28b3d12438401ec5a94d6bbaebd06cef092632
Issue-ID: INT-945
Signed-off-by: Dmitry Puzikov <dmitry.puzikov@tieto.com>
setup.sh

index 50e344a..e91555e 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -101,6 +101,10 @@ cd $path
 # as required software is installed already.
 if $BUILDTIME
 then
+       # we need to update PATH with chromium-chromedriver
+       echo "Adding in-container chromedriver to PATH"
+       ln -s /usr/lib/chromium-browser/chromedriver /usr/local/bin/chromedriver
+       
        echo "Skipping desktop steps, building container image..."
 else   
        #