From 5ecf3075fbbd2690ad3bbb821d930ecdc7b720ee Mon Sep 17 00:00:00 2001 From: Nikola Matic Date: Thu, 5 Jan 2023 13:10:42 +0100 Subject: [PATCH] Silence version check grep and up the node heap limit --- test/externalTests/common.sh | 6 +++--- test/externalTests/zeppelin.sh | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/test/externalTests/common.sh b/test/externalTests/common.sh index d8f7e80b8..144c68a89 100644 --- a/test/externalTests/common.sh +++ b/test/externalTests/common.sh @@ -345,7 +345,7 @@ function truffle_verify_compiler_version local full_solc_version="$2" printLog "Verify that the correct version (${solc_version}/${full_solc_version}) of the compiler was used to compile the contracts..." - grep "$full_solc_version" --with-filename --recursive build/contracts || fail "Wrong compiler version detected." + grep "$full_solc_version" --recursive --quiet build/contracts || fail "Wrong compiler version detected." } function hardhat_verify_compiler_version @@ -357,8 +357,8 @@ function hardhat_verify_compiler_version local build_info_files build_info_files=$(find . -path '*artifacts/build-info/*.json') for build_info_file in $build_info_files; do - grep '"solcVersion":[[:blank:]]*"'"${solc_version}"'"' --with-filename "$build_info_file" || fail "Wrong compiler version detected in ${build_info_file}." - grep '"solcLongVersion":[[:blank:]]*"'"${full_solc_version}"'"' --with-filename "$build_info_file" || fail "Wrong compiler version detected in ${build_info_file}." + grep '"solcVersion":[[:blank:]]*"'"${solc_version}"'"' --quiet "$build_info_file" || fail "Wrong compiler version detected in ${build_info_file}." + grep '"solcLongVersion":[[:blank:]]*"'"${full_solc_version}"'"' --quiet "$build_info_file" || fail "Wrong compiler version detected in ${build_info_file}." done } diff --git a/test/externalTests/zeppelin.sh b/test/externalTests/zeppelin.sh index 27198a8f0..11e148c18 100755 --- a/test/externalTests/zeppelin.sh +++ b/test/externalTests/zeppelin.sh @@ -23,6 +23,8 @@ # shellcheck disable=SC2016 set -e +# Temporary(?) fix to up the heap limit for node in order to prevent 'out of heap errors' +export NODE_OPTIONS="--max-old-space-size=4096" source scripts/common.sh source test/externalTests/common.sh