Skip to content

Commit

Permalink
Test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
indigane committed Jan 31, 2024
1 parent e796fc8 commit 2c363b9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion run-pytest
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 2c363b9

Please sign in to comment.