summaryrefslogtreecommitdiff
path: root/test/integration/targets/canonical-pep517-self-packaging/runme.sh
blob: 028348f8fe6b82497a7020a89ab7859ca3241fa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash

if [[ "${ANSIBLE_DEBUG}" == true ]]  # `ansible-test` invoked with `--debug`
then
    PYTEST_VERY_VERBOSE_FLAG=-vvvvv
    SET_DEBUG_MODE=-x
else
    ANSIBLE_DEBUG=false
    PYTEST_VERY_VERBOSE_FLAG=
    SET_DEBUG_MODE=+x
fi


set -eEuo pipefail

source virtualenv.sh

set "${SET_DEBUG_MODE}"

export PIP_DISABLE_PIP_VERSION_CHECK=true
export PIP_NO_PYTHON_VERSION_WARNING=true
export PIP_NO_WARN_SCRIPT_LOCATION=true

python -Im pip install 'pytest ~= 7.2.0'
python -Im pytest ${PYTEST_VERY_VERBOSE_FLAG} \
  --basetemp="${OUTPUT_DIR}/pytest-tmp" \
  --color=yes \
  --showlocals \
  -p no:forked \
  -p no:mock \
  -ra