Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
link33
plugin
Commits
53821256
Commit
53821256
authored
Aug 13, 2020
by
QM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updata
parent
00e4a3f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
publicTest.sh
plugin/dapp/x2ethereum/cmd/build/publicTest.sh
+7
-4
test-rpc.sh
plugin/dapp/x2ethereum/cmd/test/test-rpc.sh
+0
-3
No files found.
plugin/dapp/x2ethereum/cmd/build/publicTest.sh
View file @
53821256
...
...
@@ -12,6 +12,8 @@ RED='\033[1;31m'
GRE
=
'\033[1;32m'
NOC
=
'\033[0m'
inetAddr
=
""
# 出错退出前拷贝日志文件
function
exit_cp_file
()
{
# shellcheck disable=SC2116
...
...
@@ -350,7 +352,7 @@ function check_addr() {
}
function
get_inet_addr
()
{
local
inetAddr
=
$(
ifconfig wlp2s0 |
grep
"inet "
|
awk
'{ print $2}'
|
awk
-F
:
'{print $2}'
)
inetAddr
=
$(
ifconfig wlp2s0 |
grep
"inet "
|
awk
'{ print $2}'
|
awk
-F
:
'{print $2}'
)
if
[[
${
inetAddr
}
==
""
]]
;
then
inetAddr
=
$(
ifconfig wlp2s0 |
grep
"inet "
|
awk
'{ print $2}'
)
if
[[
${
inetAddr
}
==
""
]]
;
then
...
...
@@ -386,7 +388,8 @@ function updata_relayer_toml() {
exit_cp_file
fi
local
pushHost
=
$(
get_inet_addr
)
get_inet_addr
local
pushHost
=
"
${
inetAddr
}
"
if
[[
${
pushHost
}
==
""
]]
;
then
echo
-e
"
${
RED
}
pushHost is empty
${
NOC
}
"
exit_cp_file
...
...
@@ -488,8 +491,8 @@ function updata_relayer_toml_rpc() {
local
MAIN_HTTP
=
${
3
}
local
file
=
${
4
}
# shellcheck disable=SC2155
local
pushHost
=
$(
get_inet_addr
)
get_inet_addr
local
pushHost
=
"
${
inetAddr
}
"
if
[[
${
pushHost
}
==
""
]]
;
then
echo
-e
"
${
RED
}
pushHost is empty
${
NOC
}
"
fi
...
...
plugin/dapp/x2ethereum/cmd/test/test-rpc.sh
View file @
53821256
...
...
@@ -416,9 +416,6 @@ function rpc_test() {
copyErrLogs
docker ps
-a
docker logs
-f
"
${
dockerNamePrefix
}
_ebrelayera_rpc_1"
|
head
-n
1000
docker-compose
-f
./x2ethereum/docker-compose-x2ethereum.yml down
fi
chain33_RpcTestRst x2ethereum
"
$CASE_ERR
"
...
...
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