mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Report failed commandline tests.
This commit is contained in:
parent
76cde90098
commit
797ce727bb
@ -42,13 +42,21 @@ else
|
|||||||
log_directory=""
|
log_directory=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Running commandline tests..."
|
function printError() { echo "$(tput setaf 1)$1$(tput sgr0)"; }
|
||||||
|
function printTask() { echo "$(tput bold)$(tput setaf 2)$1$(tput sgr0)"; }
|
||||||
|
|
||||||
|
|
||||||
|
printTask "Running commandline tests..."
|
||||||
"$REPO_ROOT/test/cmdlineTests.sh" &
|
"$REPO_ROOT/test/cmdlineTests.sh" &
|
||||||
CMDLINE_PID=$!
|
CMDLINE_PID=$!
|
||||||
# Only run in parallel if this is run on CI infrastructure
|
# Only run in parallel if this is run on CI infrastructure
|
||||||
if [ -z "$CI" ]
|
if [ -z "$CI" ]
|
||||||
then
|
then
|
||||||
wait $CMDLINE_PID
|
if ! wait $CMDLINE_PID
|
||||||
|
then
|
||||||
|
printError "Commandline tests FAILED"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function download_eth()
|
function download_eth()
|
||||||
@ -112,7 +120,7 @@ for optimize in "" "--optimize"
|
|||||||
do
|
do
|
||||||
for vm in $EVM_VERSIONS
|
for vm in $EVM_VERSIONS
|
||||||
do
|
do
|
||||||
echo "--> Running tests using "$optimize" --evm-version "$vm"..."
|
printTask "--> Running tests using "$optimize" --evm-version "$vm"..."
|
||||||
log=""
|
log=""
|
||||||
if [ -n "$log_directory" ]
|
if [ -n "$log_directory" ]
|
||||||
then
|
then
|
||||||
@ -127,7 +135,11 @@ do
|
|||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
wait $CMDLINE_PID
|
if ! wait $CMDLINE_PID
|
||||||
|
then
|
||||||
|
printError "Commandline tests FAILED"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
pkill "$ETH_PID" || true
|
pkill "$ETH_PID" || true
|
||||||
sleep 4
|
sleep 4
|
||||||
|
Loading…
Reference in New Issue
Block a user