bcl / rpms / lorax

Forked from rpms/lorax 5 years ago
Clone
Blob Blame History Raw
#!/bin/bash
set -eux

: ${1?"Usage: $0 SOURCEDIR"}

SOURCEDIR=$1
CWD="$(pwd)"

cd "${SOURCEDIR}" || exit

# Make absolutely sure we are NOT testing the source distribution, just using
# the tests from ./tests/ against the installed modules
rm -rf ./src/

# Run the tests w/o adjusting PYTHONPATH
python3 -m nose ./tests/pylorax/ ./tests/composer/
RET=$?

# clean up and exit
cd "${CWD}" || exit
exit ${RET}