File tree Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -323,20 +323,6 @@ function hardhat_clean
323
323
rm -rf artifacts/ cache/
324
324
}
325
325
326
- function run_test
327
- {
328
- local compile_fn=" $1 "
329
- local test_fn=" $2 "
330
-
331
- replace_version_pragmas
332
-
333
- printLog " Running compile function..."
334
- time $compile_fn
335
-
336
- printLog " Running test function..."
337
- $test_fn
338
- }
339
-
340
326
function settings_from_preset
341
327
{
342
328
local preset=" $1 "
Original file line number Diff line number Diff line change @@ -29,9 +29,6 @@ VERSION="$2"
29
29
30
30
[[ $SOLJSON != " " && -f " $SOLJSON " && $VERSION != " " ]] || fail " Usage: $0 <path to soljson.js> <version>"
31
31
32
- function compile_fn { echo " Nothing to compile." ; }
33
- function test_fn { npm test ; }
34
-
35
32
function solcjs_test
36
33
{
37
34
TEST_DIR=$( pwd)
@@ -60,7 +57,10 @@ function solcjs_test
60
57
echo " Updating package.json to version $VERSION "
61
58
npm version --allow-same-version --no-git-tag-version " $VERSION "
62
59
63
- run_test compile_fn test_fn
60
+ replace_version_pragmas
61
+
62
+ printLog " Running test function..."
63
+ npm test
64
64
}
65
65
66
66
external_test solc-js solcjs_test
You can’t perform that action at this time.
0 commit comments