mirror of
https://github.com/LCPQ/quantum_package
synced 2025-01-08 20:33:26 +01:00
Bats dirty correction
This commit is contained in:
parent
4e1ca181ce
commit
a7466703ed
@ -12,28 +12,24 @@ 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" ]]
|
||||||
for BATS_FILE in $LIST
|
then
|
||||||
do
|
for BATS_FILE in $LIST
|
||||||
echo
|
do
|
||||||
echo "-~-~-~-~-~-~"
|
echo
|
||||||
echo
|
echo "-~-~-~-~-~-~"
|
||||||
echo "Running tests for ${BATS_FILE%.bats}"
|
echo
|
||||||
echo
|
echo "Running tests for ${BATS_FILE%.bats}"
|
||||||
BATS_FILE=bats/$BATS_FILE
|
echo
|
||||||
if [[ "$1" == "-v" ]]
|
BATS_FILE=bats/$BATS_FILE
|
||||||
then
|
|
||||||
echo "Verbose mode"
|
echo "Verbose mode"
|
||||||
./bats_to_sh.py $BATS_FILE | bash
|
./bats_to_sh.py $BATS_FILE | bash
|
||||||
else
|
done
|
||||||
bats $BATS_FILE
|
else
|
||||||
fi
|
bats bats
|
||||||
done
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user