indico-plugins/run-tests.sh
Adrian Moennich ea0a03cfca Add run-tests to run all unit tests
We need to run it from the correct folder containing pytest.ini in
case the tests need certain indico plugins.
2014-11-20 11:54:34 +01:00

8 lines
140 B
Bash

#!/bin/sh
for dir in $(find -name pytest.ini -exec dirname {} +); do
pushd "$dir" >/dev/null
py.test "$@"
popd >/dev/null
done