diff options
-rwxr-xr-x | automated/linux/ui-browser-test/ui-browser-test.sh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/automated/linux/ui-browser-test/ui-browser-test.sh b/automated/linux/ui-browser-test/ui-browser-test.sh index fc15ddb..7b1d6ed 100755 --- a/automated/linux/ui-browser-test/ui-browser-test.sh +++ b/automated/linux/ui-browser-test/ui-browser-test.sh @@ -59,18 +59,19 @@ install_deps "${pkgs}" "${SKIP_INSTALL}" mkdir -p "${OUTPUT}" echo +dist_name +if [ "${dist}" = "Debian" ] || [ "${dist}" = "Ubuntu" ]; then + "${WD}"/install-on-debian.sh +else + echo "Not a debian machine" +fi + # Copy robot test scripts to /tmp cp -a robot-test-scripts /tmp/ # Tests should runs by linaro users because X owned by linaro user. # linaro user can not create output files in /root # so change directory to /tmp cd /tmp -dist_name -if [ "${dist}" = "Debian" ] || [ "${dist}" = "Ubuntu" ]; then - ${WD}/install-on-debian.sh -else - echo "Not a debian machine" -fi # Run as TESTUSER su "${TESTUSER}" -c "${WD}"/run-robot-tests.sh # "${UI_BROWSER_TEST_OUTPUT}" directory created by TESTUSER from run-robot-tests.sh |