diff --git a/run-pytest b/run-pytest index e47b4b67..55b85693 100755 --- a/run-pytest +++ b/run-pytest @@ -57,7 +57,13 @@ fi set +e echo "here 5" -output="$("${docker_compose_exec[@]}" runserver /home/bew/.venv/bin/pytest "${misc_opts[@]}" "${opts[@]}" 2>&1)" +echo "Debug: docker_compose_exec contents: ${docker_compose_exec[*]}" +echo "Debug: misc_opts contents: ${misc_opts[*]}" +echo "Debug: opts contents: ${opts[*]}" + +#output="$("${docker_compose_exec[@]}" runserver /home/bew/.venv/bin/pytest "${misc_opts[@]}" "${opts[@]}" 2>&1)" +output="$(docker-compose exec -T runserver /home/bew/.venv/bin/pytest -o cache_dir=/tmp/pytest_cache -vvv 2>&1)" +docker-compose logs exit_code=$? set -e @@ -67,6 +73,8 @@ if [[ -n "$xml_file" ]]; then fi if [ $exit_code -ne 0 ]; then + echo "here 6" + echo "$exit_code" echo "$output" fi exit $exit_code