10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-12-22 20:35:19 +01:00

Bats dirty correction

This commit is contained in:
Thomas Applencourt 2016-10-31 12:52:05 -05:00 committed by GitHub
parent 4e1ca181ce
commit a7466703ed

View File

@ -12,28 +12,24 @@ mrcepa0.bats
"
export QP_PREFIX="timeout -s 9 300"
export QP_TASK_DEBUG=1
rm -rf work output
for BATS_FILE in $LIST
do
echo
echo "-~-~-~-~-~-~"
echo
echo "Running tests for ${BATS_FILE%.bats}"
echo
BATS_FILE=bats/$BATS_FILE
if [[ "$1" == "-v" ]]
then
if [[ "$1" == "-v" ]]
then
for BATS_FILE in $LIST
do
echo
echo "-~-~-~-~-~-~"
echo
echo "Running tests for ${BATS_FILE%.bats}"
echo
BATS_FILE=bats/$BATS_FILE
echo "Verbose mode"
./bats_to_sh.py $BATS_FILE | bash
else
bats $BATS_FILE
fi
done
done
else
bats bats
fi