mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
cmdlineTests.sh: Fix test_solc_assembly_output including garbage in the tested output
This commit is contained in:
parent
db9aa36d6c
commit
1f2ffa99c2
@ -206,7 +206,7 @@ function test_solc_assembly_output()
|
||||
local expected_object="object \"object\" { code "${expected}" }"
|
||||
|
||||
output=$(echo "${input}" | "$SOLC" - ${solc_args} 2>/dev/null)
|
||||
empty=$(echo $output | sed -ne '/'"${expected_object}"'/p')
|
||||
empty=$(echo "$output" | tr '\n' ' ' | tr -s ' ' | sed -ne "/${expected_object}/p")
|
||||
if [ -z "$empty" ]
|
||||
then
|
||||
printError "Incorrect assembly output. Expected: "
|
||||
|
Loading…
Reference in New Issue
Block a user