File: test.sh

package info (click to toggle)
pyinfra 0.2.2%2Bgit20161227.ec708ef-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 11,804 kB
  • ctags: 677
  • sloc: python: 5,944; sh: 71; makefile: 11
file content (18 lines) | stat: -rwxr-xr-x 379 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

TEST=$1

echo "### pyinfra Tests"

# Remove any cached coverage data
rm -f .coverage


if [ ! -f tests/test_${TEST}.py ]; then
    echo "--> Testing everything..."
    nosetests --with-coverage --cover-package pyinfra $@
else
    echo "--> Testing ${TEST}..."
    ARGS="${@:2}"
    nosetests tests.test_${TEST} --with-coverage --cover-package pyinfra.${TEST} $ARGS
fi