#!/bin/bash

set -o errexit -o errtrace -o nounset -o pipefail -o xtrace

docker-compose --project-name "canvas-lms0" exec -T -e RSPEC_PROCESSES=$RSPEC_PROCESSES -e FORCE_FAILURE=$FORCE_FAILURE -e FSC_REPEAT_FACTOR=$FSC_REPEAT_FACTOR -e FSC_TESTS=$FSC_TESTS canvas bash -c 'build/new-jenkins/rspec-flakey-spec-catcher-parallel.sh'

#!/bin/bash

set -o errexit -o errtrace -o nounset -o pipefail -o xtrace

if [ -v $DOCKER_PROCESSES ]; then
  docker-compose --project-name "canvas-lms$1" exec -T -e FORCE_FAILURE=$FORCE_FAILURE canvas \
      bash -c "cd /usr/src/app && bin/flakey_spec_catcher \
      --repeat=$FSC_REPEAT_FACTOR \
      --output=/usr/src/app/tmp/fsc.out \
      --test=$FSC_TESTS \
      --use-parent"
else
  docker-compose --project-name "canvas-lms0" exec -T -e RSPEC_PROCESSES=$RSPEC_PROCESSES -e FORCE_FAILURE=$FORCE_FAILURE -e FSC_REPEAT_FACTOR=$FSC_REPEAT_FACTOR -e FSC_TESTS=$FSC_TESTS canvas bash -c 'build/new-jenkins/rspec-flakey-spec-catcher-parallel.sh'
fi

Revert "modify flakey-flakey-spec-catcher to ONLY use RSPEC_PROCESSES"
Revert "modify flakey-flakey-spec-catcher to ONLY use RSPEC_PROCESSES"

This reverts commit bff2124548ad09b2e15e0dc7d31c468a8b00a476.

Reason for revert: Broken

Change-Id: Idbcede420c54db8cce570aa0ac275934daa649de
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/264018
Reviewed-by: Aaron Ogata <11ccf682c06d1508642f943a3962a1c3d00b8e44@instructure.com>
Tested-by: Kyle Rosenbaum <08c6582752644f4eca90309d6d9805aeb3128ceb@instructure.com>
QA-Review: Kyle Rosenbaum <08c6582752644f4eca90309d6d9805aeb3128ceb@instructure.com>
Product-Review: Kyle Rosenbaum <08c6582752644f4eca90309d6d9805aeb3128ceb@instructure.com>
