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
06d5bd3d
Commit
06d5bd3d
authored
Dec 24, 2018
by
Cristian Maglie
Committed by
Cristian Maglie
Jan 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed linter warnings
parent
dd0e1467
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
commands/commands_test.go
commands/commands_test.go
+3
-3
No files found.
commands/commands_test.go
View file @
06d5bd3d
...
...
@@ -235,7 +235,7 @@ func TestUploadCommands(t *testing.T) {
require
.
Contains
(
t
,
string
(
d
),
"testdata/sketchbook_with_custom_hardware/test.hex"
)
// non-existent file
exitCode
,
d
=
executeWithArgs
(
t
,
"upload"
,
"-i"
,
currSketchbookDir
.
Join
(
"test123.hex"
)
.
String
(),
"-b"
,
"test:avr:testboard"
,
"-p"
,
"/dev/ttyACM0"
)
exitCode
,
_
=
executeWithArgs
(
t
,
"upload"
,
"-i"
,
currSketchbookDir
.
Join
(
"test123.hex"
)
.
String
(),
"-b"
,
"test:avr:testboard"
,
"-p"
,
"/dev/ttyACM0"
)
require
.
NotZero
(
t
,
exitCode
,
"exit code"
)
// sketch
...
...
@@ -246,11 +246,11 @@ func TestUploadCommands(t *testing.T) {
require
.
Contains
(
t
,
string
(
d
),
"testdata/sketchbook_with_custom_hardware/TestSketch/TestSketch.test.avr.testboard.hex"
)
// sketch without build
exitCode
,
d
=
executeWithArgs
(
t
,
"upload"
,
currSketchbookDir
.
Join
(
"TestSketch2"
)
.
String
(),
"-b"
,
"test:avr:testboard"
,
"-p"
,
"/dev/ttyACM0"
)
exitCode
,
_
=
executeWithArgs
(
t
,
"upload"
,
currSketchbookDir
.
Join
(
"TestSketch2"
)
.
String
(),
"-b"
,
"test:avr:testboard"
,
"-p"
,
"/dev/ttyACM0"
)
require
.
NotZero
(
t
,
exitCode
,
"exit code"
)
// platform without 'recipe.output.tmp_file' property
exitCode
,
d
=
executeWithArgs
(
t
,
"upload"
,
"-i"
,
currSketchbookDir
.
Join
(
"test.hex"
)
.
String
(),
"-b"
,
"test2:avr:testboard"
,
"-p"
,
"/dev/ttyACM0"
)
exitCode
,
_
=
executeWithArgs
(
t
,
"upload"
,
"-i"
,
currSketchbookDir
.
Join
(
"test.hex"
)
.
String
(),
"-b"
,
"test2:avr:testboard"
,
"-p"
,
"/dev/ttyACM0"
)
require
.
NotZero
(
t
,
exitCode
,
"exit code"
)
}
...
...
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