Provide a better error reporting for failed cmdline tests.

This commit is contained in:
Marenz
2021-08-04 15:00:34 +02:00
parent ae519c1278
commit dea201800f
3 changed files with 44 additions and 29 deletions
+4 -4
View File
@@ -369,7 +369,7 @@ printTask "Compiling various other contracts and libraries..."
do
echo " - $dir"
cd "$dir"
compileFull -w ./*.sol ./*/*.sol
compileFull --expect-warnings ./*.sol ./*/*.sol
cd ..
done
)
@@ -397,15 +397,15 @@ SOLTMPDIR=$(mktemp -d)
# are used (in the style guide)
if grep -E "This will not compile|import \"" "$f" >/dev/null
then
opts=(-e)
opts=(--expect-errors)
fi
if grep "This will report a warning" "$f" >/dev/null
then
opts+=(-w)
opts+=(--expect-warnings)
fi
if grep "This may report a warning" "$f" >/dev/null
then
opts+=(-o)
opts+=(--ignore-warnings)
fi
# Disable the version pragma in code snippets that only work with the current development version.