File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 20
20
from .common import running_on_ci
21
21
22
22
23
- def test_sketch_new_ (run_command ):
23
+ def test_sketch_new (run_command ):
24
24
# Create a test sketch in current directory
25
25
current_path = os .getcwd ()
26
26
sketch_name = "SketchNewIntegrationTest"
@@ -38,7 +38,14 @@ def test_sketch_new_(run_command):
38
38
assert "Sketch created in: {}" .format (current_sketch_path ) in result .stdout
39
39
assert os .path .isfile (os .path .join (current_sketch_path , sketch_name + ".ino" ))
40
40
41
-
41
+ # Create a test sketch in current directory subpath but using an absolute path
42
+ sketch_name = "SketchNewIntegrationTestAbsolute"
43
+ sketch_subpath = os .path .join ("subpath" , sketch_name )
44
+ current_sketch_path = os .path .join (current_path , sketch_subpath )
45
+ result = run_command ("sketch new {}" .format (current_sketch_path ))
46
+ assert result .ok
47
+ assert "Sketch created in: {}" .format (current_sketch_path ) in result .stdout
48
+ assert os .path .isfile (os .path .join (current_sketch_path , sketch_name + ".ino" ))
42
49
43
50
44
51
def test_compile_without_fqbn (run_command ):
You can’t perform that action at this time.
0 commit comments