From ea0a03cfcab0d7eab75d3f98d85247463ff5d9db Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Thu, 20 Nov 2014 11:54:34 +0100 Subject: [PATCH] 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. --- run-tests.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 run-tests.sh diff --git a/run-tests.sh b/run-tests.sh new file mode 100644 index 0000000..7fa5fb0 --- /dev/null +++ b/run-tests.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +for dir in $(find -name pytest.ini -exec dirname {} +); do + pushd "$dir" >/dev/null + py.test "$@" + popd >/dev/null +done