Merge pull request #1663 from ethereum/mac-tests-fix

Fix tests on mac (wc produces whitespace)
This commit is contained in:
chriseth 2017-02-08 13:01:54 +01:00 committed by GitHub
commit b0729d0e76

View File

@ -35,7 +35,7 @@ echo "Running commandline tests..."
echo "Checking that StandardToken.sol, owned.sol and mortal.sol produce bytecode..."
output=$("$REPO_ROOT"/build/solc/solc --bin "$REPO_ROOT"/std/*.sol 2>/dev/null | grep "ffff" | wc -l)
test "$output" = "3"
test "${output//[[:blank:]]/}" = "3"
# This conditional is only needed because we don't have a working Homebrew
# install for `eth` at the time of writing, so we unzip the ZIP file locally