Skip to content

Commit

Permalink
allow to run flaky tests in PR (#42103)
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Mar 8, 2021
1 parent a3be580 commit 8d90586
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .docker/docker-qgis-test.sh
Expand Up @@ -121,7 +121,7 @@ fi
# Run tests
###########
EXCLUDE_TESTS=$(cat /root/QGIS/.ci/test_blocklist.txt | sed -r '/^(#.*?)?$/d' | paste -sd '|' -)
if ! [[ ${RUN_FLAKY_TESTS} =~ ^true$ ]]; then
if ! [[ ${RUN_FLAKY_TESTS} == true ]]; then
echo "Flaky tests are skipped!"
EXCLUDE_TESTS=${EXCLUDE_TESTS}"|"$(cat /root/QGIS/.ci/test_flaky.txt | sed -r '/^(#.*?)?$/d' | paste -sd '|' -)
else
Expand Down
2 changes: 2 additions & 0 deletions .docker/docker-variables.env
Expand Up @@ -5,8 +5,10 @@ SEGFAULT_SIGNALS="abrt segv"
CTEST_BUILD_COMMAND=/usr/bin/ninja
CTEST_PARALLEL_LEVEL=1
CTEST_BUILD_DIR=/root/QGIS

# CTEST vars defined in workflow
CTEST_BUILD_NAME
RUN_FLAKY_TESTS

# Other vars
QGIS_NO_OVERRIDE_IMPORT=1
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run-tests.yml
Expand Up @@ -28,6 +28,7 @@ jobs:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
GH_WORKSPACE: ${{ github.workspace }} # used in docker compose
DEFAULT_UBUNTU_BASE: '20.04'
RUN_FLAKY_TESTS: ${{ contains( github.event.pull_request.labels.*.name, 'run flaky tests') }}

runs-on: ubuntu-latest

Expand Down

0 comments on commit 8d90586

Please sign in to comment.