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
23b0153f
Commit
23b0153f
authored
Nov 16, 2023
by
Cristian Maglie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed integration test
parent
f85af84d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
internal/integrationtest/compile_3/compile_commands_test.go
internal/integrationtest/compile_3/compile_commands_test.go
+2
-8
No files found.
internal/integrationtest/compile_3/compile_commands_test.go
View file @
23b0153f
...
@@ -16,11 +16,9 @@
...
@@ -16,11 +16,9 @@
package
compile_test
package
compile_test
import
(
import
(
"encoding/json"
"testing"
"testing"
"github.com/arduino/arduino-cli/internal/integrationtest"
"github.com/arduino/arduino-cli/internal/integrationtest"
"github.com/arduino/go-paths-helper"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"go.bug.st/testifyjson/requirejson"
"go.bug.st/testifyjson/requirejson"
)
)
...
@@ -36,13 +34,9 @@ func TestCompileCommandsJSONGeneration(t *testing.T) {
...
@@ -36,13 +34,9 @@ func TestCompileCommandsJSONGeneration(t *testing.T) {
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
// Create a test sketch
// Create a test sketch
out
,
_
,
err
:=
cli
.
Run
(
"sketch"
,
"new"
,
"Test"
,
"--format"
,
"json
"
)
_
,
_
,
err
=
cli
.
Run
(
"sketch"
,
"new"
,
"Test
"
)
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
var
s
struct
{
sketchPath
:=
cli
.
WorkingDir
()
.
Join
(
"Test"
)
Path
string
`json:"sketch_path"`
}
require
.
NoError
(
t
,
json
.
Unmarshal
(
out
,
&
s
))
sketchPath
:=
paths
.
New
(
s
.
Path
)
buildPath
:=
sketchPath
.
Join
(
"build"
)
buildPath
:=
sketchPath
.
Join
(
"build"
)
{
{
...
...
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