Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
62b44936
Unverified
Commit
62b44936
authored
Dec 16, 2022
by
MatteoPologruto
Committed by
GitHub
Dec 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update url to prevent tests from failing (#2013)
parent
b6cc517d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
arduino/resources/resources_test.go
arduino/resources/resources_test.go
+1
-1
internal/integrationtest/core/core_test.go
internal/integrationtest/core/core_test.go
+4
-4
No files found.
arduino/resources/resources_test.go
View file @
62b44936
...
...
@@ -42,7 +42,7 @@ func TestDownloadAndChecksums(t *testing.T) {
CachePath
:
"cache"
,
Checksum
:
"SHA-256:6a338cf4d6d501176a2d352c87a8d72ac7488b8c5b82cdf2a4e2cef630391092"
,
Size
:
486
,
URL
:
"https://raw.githubusercontent.com/arduino/arduino-cli/master/test/testdata/core.zip"
,
URL
:
"https://raw.githubusercontent.com/arduino/arduino-cli/master/
internal/integration
test/testdata/core.zip"
,
}
digest
,
err
:=
hex
.
DecodeString
(
"6a338cf4d6d501176a2d352c87a8d72ac7488b8c5b82cdf2a4e2cef630391092"
)
require
.
NoError
(
t
,
err
)
...
...
internal/integrationtest/core/core_test.go
View file @
62b44936
...
...
@@ -162,7 +162,7 @@ func TestCoreSearchNoArgs(t *testing.T) {
lines
=
append
(
lines
,
strings
.
Fields
(
strings
.
TrimSpace
(
v
)))
}
// The header is printed on the first lines
require
.
Equal
(
t
,
[]
string
{
"test:x86"
,
"2.0.0"
,
"test_core"
},
lines
[
19
])
require
.
Equal
(
t
,
[]
string
{
"test:x86"
,
"2.0.0"
,
"test_core"
},
lines
[
20
])
numPlatforms
:=
len
(
lines
)
-
1
// same thing in JSON format, also check the number of platforms found is the same
...
...
@@ -179,7 +179,7 @@ func TestCoreSearchNoArgs(t *testing.T) {
lines
=
append
(
lines
,
strings
.
Fields
(
strings
.
TrimSpace
(
v
)))
}
// The header is printed on the first lines
require
.
Equal
(
t
,
[]
string
{
"test:x86"
,
"2.0.0"
,
"test_core"
},
lines
[
2
0
])
require
.
Equal
(
t
,
[]
string
{
"test:x86"
,
"2.0.0"
,
"test_core"
},
lines
[
2
1
])
numPlatforms
=
len
(
lines
)
-
1
// same thing in JSON format, also check the number of platforms found is the same
...
...
@@ -385,7 +385,7 @@ func TestCoreZipslip(t *testing.T) {
env
,
cli
:=
integrationtest
.
CreateArduinoCLIWithEnvironment
(
t
)
defer
env
.
CleanUp
()
url
:=
"https://raw.githubusercontent.com/arduino/arduino-cli/master/test/testdata/test_index.json"
url
:=
"https://raw.githubusercontent.com/arduino/arduino-cli/master/
internal/integration
test/testdata/test_index.json"
_
,
_
,
err
:=
cli
.
Run
(
"core"
,
"update-index"
,
"--additional-urls="
+
url
)
require
.
NoError
(
t
,
err
)
...
...
@@ -399,7 +399,7 @@ func TestCoreBrokenInstall(t *testing.T) {
env
,
cli
:=
integrationtest
.
CreateArduinoCLIWithEnvironment
(
t
)
defer
env
.
CleanUp
()
url
:=
"https://raw.githubusercontent.com/arduino/arduino-cli/master/test/testdata/test_index.json"
url
:=
"https://raw.githubusercontent.com/arduino/arduino-cli/master/
internal/integration
test/testdata/test_index.json"
_
,
_
,
err
:=
cli
.
Run
(
"core"
,
"update-index"
,
"--additional-urls="
+
url
)
require
.
NoError
(
t
,
err
)
_
,
_
,
err
=
cli
.
Run
(
"core"
,
"install"
,
"brokenchecksum:x86"
,
"--additional-urls="
+
url
)
...
...
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