aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-06-13 08:23:01 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-06-25 22:17:50 +0800
commitd44743c87f09ff176cd82cd3840671ee753406ca (patch)
tree3c9a4dbde0d15efae8723f24dff3978bb28c27f2
parentb7ad97610f8a737cb8154f5ad83f4c333f4ca159 (diff)
downloaddexon-solidity-d44743c87f09ff176cd82cd3840671ee753406ca.tar.gz
dexon-solidity-d44743c87f09ff176cd82cd3840671ee753406ca.tar.zst
dexon-solidity-d44743c87f09ff176cd82cd3840671ee753406ca.zip
Replace old Truffle artifacts in external Zeppelin/Gnosis tests
-rwxr-xr-xtest/externalTests.sh7
1 files changed, 7 insertions, 0 deletions
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"