10
0
mirror of https://github.com/LCPQ/quantum_package synced 2025-01-09 12:44:07 +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,13 +12,12 @@ mrcepa0.bats
" "
export QP_PREFIX="timeout -s 9 300" export QP_PREFIX="timeout -s 9 300"
export QP_TASK_DEBUG=1 export QP_TASK_DEBUG=1
rm -rf work output rm -rf work output
if [[ "$1" == "-v" ]]
then
for BATS_FILE in $LIST for BATS_FILE in $LIST
do do
echo echo
@ -27,13 +26,10 @@ do
echo "Running tests for ${BATS_FILE%.bats}" echo "Running tests for ${BATS_FILE%.bats}"
echo echo
BATS_FILE=bats/$BATS_FILE BATS_FILE=bats/$BATS_FILE
if [[ "$1" == "-v" ]]
then
echo "Verbose mode" echo "Verbose mode"
./bats_to_sh.py $BATS_FILE | bash ./bats_to_sh.py $BATS_FILE | bash
else
bats $BATS_FILE
fi
done done
else
bats bats
fi