diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/cmdlineTests.sh | 2 | ||||
-rwxr-xr-x | test/externalTests.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/cmdlineTests.sh b/test/cmdlineTests.sh index e4218b6e..78e45429 100755 --- a/test/cmdlineTests.sh +++ b/test/cmdlineTests.sh @@ -178,7 +178,7 @@ do echo " - $dir" cd "$dir" # Replace version pragmas - find . -name '*.sol' -type f -print0 | xargs -0 sed -i -e 's/pragma solidity [^;]+/pragma solidity ^0/' + find . -name '*.sol' -type f -print0 | xargs -0 sed -i -e 's/pragma solidity [\^0-9\.]*/pragma solidity >=0.0/' compileFull -w *.sol */*.sol cd .. fi diff --git a/test/externalTests.sh b/test/externalTests.sh index 17768875..0168fb03 100755 --- a/test/externalTests.sh +++ b/test/externalTests.sh @@ -59,7 +59,7 @@ function test_truffle if [ "$name" == "Zeppelin" -o "$name" == "Gnosis" ]; then echo "Replaced fixed-version pragmas..." # 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 [^;]+/pragma solidity ^0/' + find contracts test -name '*.sol' -type f -print0 | xargs -0 sed -i -e 's/pragma solidity [\^0-9\.]*/pragma solidity >=0.0/' fi assertsol="node_modules/truffle/build/Assert.sol" if [ -f "$assertsol" ] |