Skip to content

Commit f0f2393

Browse files
committed
cmdlineTests.sh: Remove the empty line after the pre-release warning as well
- Until now it was being removed along with the leading/trailing whitespace that we strip so it did not matter. Now the EVM deprecation warning can get before this warning, preserving the whitespace and making CLI tests fail.
1 parent 1b7652e commit f0f2393

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/cmdlineTests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ EOF
240240
sed -i.bak -e 's/\(\\"version\\":[ ]*\\"\)[^"\\]*\(\\"\)/\1<VERSION REMOVED>\2/' "$stdout_path"
241241
rm "$stdout_path.bak"
242242
else
243-
sed -i.bak -e '/^Warning: This is a pre-release compiler version, please do not use it in production./d' "$stderr_path"
243+
sed -i.bak -e '/^Warning: This is a pre-release compiler version, please do not use it in production./,+1d' "$stderr_path"
244244
sed -i.bak -e '/^Compiler run successful, no output requested\.$/d' "$stderr_path"
245-
sed -i.bak -e '/^Warning (3805): This is a pre-release compiler version, please do not use it in production./d' "$stderr_path"
245+
sed -i.bak -e '/^Warning (3805): This is a pre-release compiler version, please do not use it in production./,+1d' "$stderr_path"
246246
sed -i.bak -e 's/\(^[ ]*auxdata: \)0x[0-9a-f]*$/\1<AUXDATA REMOVED>/' "$stdout_path"
247247
sed -i.bak -e 's/ Consider adding "pragma .*$//' "$stderr_path"
248248
sed -i.bak -e 's/\(Unimplemented feature error.* in \).*$/\1<FILENAME REMOVED>/' "$stderr_path"

0 commit comments

Comments
 (0)