summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDina Dodin <dinadod@amdocs.com>2017-08-01 10:53:04 +0300
committerDina Dodin <dinadod@amdocs.com>2017-08-01 10:53:29 +0300
commitfabd1e8950ac9f68802a06bf2588e43fb3fb9c97 (patch)
tree1af6f77349c1491cb61c8eb3ac35037f7b3655c6
parent74467f4bac30983ffc1b36d151be4cf3541ab520 (diff)
Enhance setup.sh script
Issue: TEST-50 Change-Id: I1eea7fbeacdcdf10944af4eda2746e5d08013c56 Signed-off-by: Dina Dodin <dinadod@amdocs.com>
-rw-r--r--setup.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/setup.sh b/setup.sh
index bbb534fd..44a9883c 100644
--- a/setup.sh
+++ b/setup.sh
@@ -2,7 +2,14 @@
#
# setup : script to setup required runtime environment. This script can be run again to update anything
# this should stay in your project directory
-#
+
+
+# save console output in setup_<timestamp>.log file in project directory
+timestamp=$(date +"%m%d%Y_%H%M%S")
+LOG_FILE=setup_$timestamp.log
+exec > >(tee -a ${LOG_FILE} )
+exec 2> >(tee -a ${LOG_FILE} >&2)
+
# get the path
path=$(pwd)
@@ -58,6 +65,11 @@ pip install --no-cache-dir --upgrade --target="$path/robot/library" .
# https://github.com/robotframework/SSHLibrary/issues/157
pip install --no-cache-dir --target="$path/robot/library" -U 'paramiko==2.0.2'
+
+# Go back to execution folder
+cd $path
+
+
#
# Get the appropriate chromedriver. Default to linux64
#