Skip to content

Commit 6d455ad

Browse files
author
Roberto Sora
committed
align current tests to new behaviour
1 parent d7efb1f commit 6d455ad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cli/cli_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,11 @@ func TestCompileCommandsIntegration(t *testing.T) {
319319
require.Zero(t, exitCode)
320320

321321
// Create a test sketch
322-
exitCode, d := executeWithArgs("sketch", "new", "Test1")
322+
test1 := filepath.Join(currSketchbookDir, "Test1")
323+
exitCode, d := executeWithArgs("sketch", "new", test1)
323324
require.Zero(t, exitCode)
324325

325326
// Build sketch without FQBN
326-
test1 := filepath.Join(currSketchbookDir, "Test1")
327327
exitCode, d = executeWithArgs("compile", test1)
328328
require.NotZero(t, exitCode)
329329
require.Contains(t, string(d), "no FQBN provided")

test/test_compile.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def test_compile_with_simple_sketch(run_command, data_dir):
4747
fqbn = "arduino:avr:uno"
4848

4949
# Create a test sketch
50-
result = run_command("sketch new {}".format(sketch_name))
50+
result = run_command("sketch new {}".format(sketch_path))
5151
assert result.ok
5252
assert "Sketch created in: {}".format(sketch_path) in result.stdout
5353

@@ -83,7 +83,7 @@ def test_compile_and_compile_combo(run_command, data_dir):
8383
# Create a test sketch
8484
sketch_name = "CompileAndUploadIntegrationTest"
8585
sketch_path = os.path.join(data_dir, sketch_name)
86-
result = run_command("sketch new CompileAndUploadIntegrationTest")
86+
result = run_command("sketch new {}".format(sketch_path))
8787
assert result.ok
8888
assert "Sketch created in: {}".format(sketch_path) in result.stdout
8989

0 commit comments

Comments
 (0)