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
5fd8684a
Commit
5fd8684a
authored
Sep 14, 2017
by
Francisco Giordano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
properly kill background testrpc instance
parent
1737555b
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 @
5fd8684a
...
...
@@ -23,32 +23,35 @@ testrpc_running() {
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
node_modules/.bin/testrpc-sc
--gasLimit
0xfffffffffff
--port
"
$testrpc_port
"
"
$
@
"
node_modules/.bin/testrpc-sc
--gasLimit
0xfffffffffff
--port
"
$testrpc_port
"
"
$
{
accounts
[@]
}
"
>
/dev/null &
else
node_modules/.bin/testrpc
"
$
@
"
node_modules/.bin/testrpc
"
$
{
accounts
[@]
}
"
>
/dev/null &
fi
testrpc_pid
=
$!
}
if
testrpc_running
;
then
echo
"Using existing testrpc instance"
else
echo
"Starting our own testrpc instance"
# We define 10 accounts with balance 1M ether, needed for high-value tests.
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
=
$!
start_testrpc
fi
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