]> arthur.barton.de Git - bup.git/blobdiff - pytest
tests: partially convert to pytest
[bup.git] / pytest
diff --git a/pytest b/pytest
new file mode 100755 (executable)
index 0000000..a62ee1f
--- /dev/null
+++ b/pytest
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -eu
+
+script_home="$(cd "$(dirname "$0")" && pwd -P)"
+testlibdir="$script_home/test/lib"
+
+export PYTHONPATH="$testlibdir${PYTHONPATH:+:$PYTHONPATH}"
+exec dev/bup-python -m pytest -v "$@"