mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-06-10 23:34:47 +08:00
20 lines
392 B
Bash
Executable file
Vendored
20 lines
392 B
Bash
Executable file
Vendored
#!/bin/sh
|
|
# Selenium testsuite executor
|
|
|
|
. ci/lib
|
|
|
|
run_coverage ./manage.py collectstatic --noinput
|
|
check
|
|
|
|
export DO_SELENIUM=1
|
|
|
|
# We retry Selenium tests to workaroud occasional failures
|
|
# in connection to SauceLabs
|
|
RETRIES=3
|
|
RET=1
|
|
while [ $RET -ne 0 -a $RETRIES -gt 0 ] ; do
|
|
run_coverage ./manage.py test -v 2 -p test_selenium.py
|
|
RET=$?
|
|
RETRIES=$(($RETRIES - 1))
|
|
done
|
|
exit $RET
|