Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: add fake DBUS_SESSION_BUS_ADDRESS to improve CI reliability #6279

Merged
merged 1 commit into from Aug 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion test-prow-e2e.sh
Expand Up @@ -27,10 +27,14 @@ export BRIDGE_BASE_ADDRESS
oc apply -f ./frontend/integration-tests/data/htpasswd-secret.yaml
oc patch oauths cluster --patch "$(cat ./frontend/integration-tests/data/patch-htpasswd.yaml)" --type=merge

# "fake" dbus address to prevent errors
# https://github.com/SeleniumHQ/docker-selenium/issues/87
DBUS_SESSION_BUS_ADDRESS=/dev/null
export DBUS_SESSION_BUS_ADDRESS

CHROME_VERSION=$(google-chrome --version) ./test-gui.sh "${1:-e2e}"

# Only run Cypress tests if no agruments passed, or if the 'release' argument was passed
if [ $# -eq 0 ] || [ "$1" == "release" ]; then
./test-cypress.sh
fi