| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
WORKDIR=$(mktemp -d) |
| 6 |
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM |
| 7 |
cd $WORKDIR |
| 8 |
cat <<EOF > test.py |
| 9 |
import pytest |
| 10 |
|
| 11 |
@pytest.mark.repeat(3) |
| 12 |
def test_repeat_decorator(): |
| 13 |
pass |
| 14 |
EOF |
| 15 |
|
| 16 |
pytest-3 --strict-markers test.py |
| 17 |
echo "run: OK" |