41f88aae85
Test installed package, not the source itself. Resolves: rhbz#1968762
16 lines
328 B
Bash
Executable File
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}
|