Merge pull request #5419 from ethereum/fixcmdlinetests

Fix commandline tests.
This commit is contained in:
chriseth 2018-11-14 09:58:42 +01:00 committed by GitHub
commit bf5b94587f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,7 +124,7 @@ test_solc_file_input_failures() {
set -e
sed -i -e '/^Warning: This is a pre-release compiler version, please do not use it in production./d' "$stderr_path"
sed -i -e 's/ \?Consider adding "pragma .*$//' "$stderr_path"
sed -i -e 's/ Consider adding "pragma .*$//' "$stderr_path"
if [[ $exitCode -eq 0 ]]; then
printError "Incorrect exit code. Expected failure (non-zero) but got success (0)."