From d44743c87f09ff176cd82cd3840671ee753406ca Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 13 Jun 2018 01:23:01 +0100 Subject: Replace old Truffle artifacts in external Zeppelin/Gnosis tests --- test/externalTests.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/externalTests.sh b/test/externalTests.sh index 3125f92f..f2839083 100755 --- a/test/externalTests.sh +++ b/test/externalTests.sh @@ -61,6 +61,13 @@ function test_truffle # Replace fixed-version pragmas in Gnosis (part of Consensys best practice) find contracts test -name '*.sol' -type f -print0 | xargs -0 sed -i -e 's/pragma solidity 0/pragma solidity ^0/' fi + assertsol="node_modules/truffle/build/Assert.sol" + if [ -f "$assertsol" ] + then + echo "Replace Truffle's Assert.sol with a known good version" + rm "$assertsol" + wget https://raw.githubusercontent.com/trufflesuite/truffle-core/ef31bcaa15dbd9bd0f6a0070a5c63f271cde2dbc/lib/testing/Assert.sol -o "$assertsol" + fi npm run test ) rm -rf "$DIR" -- cgit v1.2.3