Skip to content

Commit

Permalink
ci: rerun to avoid misleading with the test reruns
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Apr 22, 2020
1 parent 98593d3 commit 833c93f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions x-pack/legacy/plugins/apm/e2e/ci/rerun-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ E2E_DIR="${0%/*}/.."
source src/dev/ci_setup/setup_env.sh true
set -ex
cd "${E2E_DIR}"

## Let's remove the previous run test results to avoid messing up
## with the test reporting in the CI.
rm cypress/test-results/*.* || true
rm -rf cypress/screenshots/* || true

## Let's move previous videos to a backup folder.
old_videos="cypress/videos/previous/$(date +%s)"
mkdir -p "${old_videos}"
mv cypress/videos/*.mp4 "${old_videos}/"

yarn cypress run --config pageLoadTimeout=100000,watchForFileChanges=true

0 comments on commit 833c93f

Please sign in to comment.