Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
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
张蕾
Geth-Modification
Commits
f8790b94
Unverified
Commit
f8790b94
authored
Nov 18, 2019
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mobile: fix CopyFile switch to package cp
parent
8bd5bb89
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
android_test.go
mobile/android_test.go
+2
-2
No files found.
mobile/android_test.go
View file @
f8790b94
...
...
@@ -25,7 +25,7 @@ import (
"testing"
"time"
"github.com/
ethereum/go-ethereum/internal/build
"
"github.com/
cespare/cp
"
)
// androidTestClass is a Java class to do some lightweight tests against the Android
...
...
@@ -212,7 +212,7 @@ func TestAndroid(t *testing.T) {
t
.
Logf
(
"%s"
,
output
)
t
.
Fatalf
(
"failed to run gomobile bind: %v"
,
err
)
}
build
.
CopyFile
(
filepath
.
Join
(
"libs"
,
"geth.aar"
),
"geth.aar"
,
os
.
ModePerm
)
cp
.
CopyFile
(
filepath
.
Join
(
"libs"
,
"geth.aar"
),
"geth.aar"
)
if
err
=
ioutil
.
WriteFile
(
filepath
.
Join
(
"src"
,
"androidTest"
,
"java"
,
"org"
,
"ethereum"
,
"gethtest"
,
"AndroidTest.java"
),
[]
byte
(
androidTestClass
),
os
.
ModePerm
);
err
!=
nil
{
t
.
Fatalf
(
"failed to write Android test class: %v"
,
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