Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
f60c5ad8
Commit
f60c5ad8
authored
Sep 18, 2017
by
Francisco Giordano
Committed by
GitHub
Sep 18, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #445 from frangio/fix-leftover-testrpc
Properly kill background testrpc instance
parents
33eb8b1d
5fd8684a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
17 deletions
+20
-17
test.sh
scripts/test.sh
+20
-17
No files found.
scripts/test.sh
View file @
f60c5ad8
...
@@ -23,32 +23,35 @@ testrpc_running() {
...
@@ -23,32 +23,35 @@ testrpc_running() {
nc
-z
localhost
"
$testrpc_port
"
nc
-z
localhost
"
$testrpc_port
"
}
}
testrpc
()
{
start_testrpc
()
{
# We define 10 accounts with balance 1M ether, needed for high-value tests.
local
accounts
=(
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501200,1000000000000000000000000"
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501201,1000000000000000000000000"
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501202,1000000000000000000000000"
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501203,1000000000000000000000000"
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501204,1000000000000000000000000"
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501205,1000000000000000000000000"
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501206,1000000000000000000000000"
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501207,1000000000000000000000000"
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501208,1000000000000000000000000"
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501209,1000000000000000000000000"
)
if
[
"
$SOLIDITY_COVERAGE
"
=
true
]
;
then
if
[
"
$SOLIDITY_COVERAGE
"
=
true
]
;
then
node_modules/.bin/testrpc-sc
--gasLimit
0xfffffffffff
--port
"
$testrpc_port
"
"
$
@
"
node_modules/.bin/testrpc-sc
--gasLimit
0xfffffffffff
--port
"
$testrpc_port
"
"
$
{
accounts
[@]
}
"
>
/dev/null &
else
else
node_modules/.bin/testrpc
"
$
@
"
node_modules/.bin/testrpc
"
$
{
accounts
[@]
}
"
>
/dev/null &
fi
fi
testrpc_pid
=
$!
}
}
if
testrpc_running
;
then
if
testrpc_running
;
then
echo
"Using existing testrpc instance"
echo
"Using existing testrpc instance"
else
else
echo
"Starting our own testrpc instance"
echo
"Starting our own testrpc instance"
# We define 10 accounts with balance 1M ether, needed for high-value tests.
start_testrpc
testrpc
\
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501200,1000000000000000000000000"
\
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501201,1000000000000000000000000"
\
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501202,1000000000000000000000000"
\
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501203,1000000000000000000000000"
\
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501204,1000000000000000000000000"
\
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501205,1000000000000000000000000"
\
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501206,1000000000000000000000000"
\
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501207,1000000000000000000000000"
\
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501208,1000000000000000000000000"
\
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501209,1000000000000000000000000"
\
>
/dev/null &
testrpc_pid
=
$!
fi
fi
if
[
"
$SOLIDITY_COVERAGE
"
=
true
]
;
then
if
[
"
$SOLIDITY_COVERAGE
"
=
true
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment