Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(518)

Unified Diff: bin/test-charm

Issue 7307104: Test different browsers using the same env.
Patch Set: Test different browsers using the same env. Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « [revision details] ('k') | docs/browser-testing.rst » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/test-charm
=== modified file 'bin/test-charm'
--- bin/test-charm 2013-02-08 09:47:09 +0000
+++ bin/test-charm 2013-02-12 16:05:16 +0000
@@ -6,7 +6,14 @@
python lib/deploy_charm_for_testing.py "$@"
# Figure out the URL of the APP.
export APP_URL=https://`juju status -e juju-gui-testing | grep public-address: | cut -d: -f2 | cut -c2-`
+# EXIT_CODE is used to keep track of test failures. If a test fails, this
+# script will exit with an error code.
+EXIT_CODE=0
# Run the browser tests against the app.
-python test/test_charm_running.py -v
+for JUJU_GUI_TEST_BROWSER in ${JUJU_GUI_TEST_BROWSERS:-chrome}; do
+ export JUJU_GUI_TEST_BROWSER
+ python test/test_charm_running.py -v || EXIT_CODE=1
+done
# Destroy the environment, releasing the resources.
yes | juju destroy-environment -e juju-gui-testing
+exit $EXIT_CODE
« no previous file with comments | « [revision details] ('k') | docs/browser-testing.rst » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b