pykickstart/tests/simple/run_tests.sh
Brian C. Lane 41f88aae85 gating: Test the installed pykickstart package
Test installed package, not the source itself.

Resolves: rhbz#1968762
2021-06-08 15:45:28 -07:00

16 lines
328 B
Bash
Executable File

#!/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}