cmdlineTests.sh: Print task name before the error about ambiguous input

- Otherwise it looks as if the error applies to a test that actually succeeded.
This commit is contained in:
Kamil Śliwak 2020-11-07 16:12:11 +01:00
parent 32f1d25498
commit 7f1389a6cd

View File

@ -240,6 +240,8 @@ printTask "Running general commandline tests..."
cd "$REPO_ROOT"/test/cmdlineTests/
for tdir in */
do
printTask " - ${tdir}"
if [ -e "${tdir}/input.json" ]
then
inputFile=""
@ -268,7 +270,6 @@ printTask "Running general commandline tests..."
exitCode=$(cat ${tdir}/exit 2>/dev/null || true)
err="$(cat ${tdir}/err 2>/dev/null || true)"
stderrExpectationFile="${tdir}/err"
printTask " - ${tdir}"
test_solc_behaviour "$inputFile" \
"$args" \
"$stdin" \