This repository was archived by the owner on Jun 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ Note image ids also change after scm-source.json has being updated which trigger
1010## TBD_DOCKER_TAG
1111 + ** Changes:** https://github.com/elgalu/docker-selenium/compare/2165f8bc5ed5642c61fa500...master (TBD_DATE)
1212 + Upgrade Chromedriver minor from 2.20 to 2.30
13+ + Add cleanup-container.sh for Zalenium
1314 + ** Image tag details:**
1415 + Selenium version: TBD_SELENIUM_3_VERSION (TBD_SELENIUM_3_REVISION)
1516 + Chrome stable: TBD_CHROME_STABLE
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set +e
4+
5+ # if [ -z "${CHROME}" ]; then
6+ # if [ -f CHROME ]; then
7+ # export CHROME="$(cat CHROME)"
8+ # else
9+ # # fallback guard
10+ # export CHROME="true"
11+ # fi
12+ # fi
13+
14+ # This is currently not working well
15+ # if [ "${CHROME}" == "true" ]; then
16+ # # Try to retrieve Chrome Browser console logs when using this image through Zalenium
17+ # cp /home/seluser/chrome-user-data-dir/chrome_debug.log /var/log/cont/chrome_browser.log
18+ # fi
19+
20+ # After transferring the logs: Kill unclosed browsers, if any
21+ killall --ignore-case --quiet --regexp " chrome.*"
22+ killall --ignore-case --quiet --regexp " geckodriver.*"
23+ killall --ignore-case --quiet --regexp " firefox.*"
24+ # killall --ignore-case --quiet --regexp "firefox.*" -9
25+
26+ # After transferring the logs: reset them for the next test
27+ for filename in /var/log/cont/* .log; do
28+ truncate -s 0 $filename
29+ done
You can’t perform that action at this time.
0 commit comments