We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f1c5fe7 + 0b7055a commit 3f16e5aCopy full SHA for 3f16e5a
scripts/test
@@ -9,6 +9,14 @@ source $(pwd)/scripts/evm
9
10
yarn build
11
12
+### Cleanup
13
+function cleanup() {
14
+ if [ "$RUN_EVM" = true ]; then
15
+ evm_kill
16
+ fi
17
+}
18
+trap cleanup EXIT
19
+
20
# Gas reporter needs to run in its own evm instance
21
if [ "$RUN_EVM" = true ]; then
22
evm_kill
@@ -23,14 +31,7 @@ mkdir -p reports
23
31
# Run using the standalone evm instance
24
32
npx hardhat test --network hardhat $@
25
33
26
-### Cleanup
27
-
28
-# Exit error mode so the evm instance always gets killed
29
-set +e
30
-result=0
-if [ "$RUN_EVM" = true ]; then
- evm_kill
34
+if [ "$REPORT_GAS" = true ]; then
35
+ cat reports/gas-report.log
36
+ echo "" # Gas report doesn't have a newline at the end
37
fi
-exit $result
0 commit comments