#!/bin/sh set -eux : ${1?"Usage: $0 TESTSDIR"} TESTSDIR="$1" SOURCEDIR="${TESTSDIR}/source/" cd "${SOURCEDIR}" || exit # Make sure the pykickstart source isn't tested rm -rf ./pykickstart # Run the unittests against the installed package python3 -m unittest -v tests/*py tests/commands/*py tests/tools/*py RET=$? exit ${RET}