Skip to content

Commit f9704d4

Browse files
committed
Text fix: no more need to check if "extension won't be added if already present"
1 parent bc2d0b6 commit f9704d4

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

test/test_compile.py

+4-12
Original file line numberDiff line numberDiff line change
@@ -104,23 +104,15 @@ def test_output_flag_default_path(run_command, data_dir, working_dir):
104104
result = run_command("sketch new {}".format(sketch_path))
105105
assert result.ok
106106

107-
# Test the --output flag defaulting to current working dir
107+
# Test the --output-dir flag defaulting to current working dir
108108
result = run_command(
109-
"compile -b {fqbn} {sketch_path} -o test".format(
109+
"compile -b {fqbn} {sketch_path} --output-dir test".format(
110110
fqbn=fqbn, sketch_path=sketch_path
111111
)
112112
)
113113
assert result.ok
114-
assert os.path.exists(os.path.join(working_dir, "test.hex"))
115-
116-
# Test extension won't be added if already present
117-
result = run_command(
118-
"compile -b {fqbn} {sketch_path} -o test2.hex".format(
119-
fqbn=fqbn, sketch_path=sketch_path
120-
)
121-
)
122-
assert result.ok
123-
assert os.path.exists(os.path.join(working_dir, "test2.hex"))
114+
target = os.path.join(working_dir, "test")
115+
assert os.path.exists(target) and os.path.isdir(target)
124116

125117

126118
def test_compile_with_sketch_with_symlink_selfloop(run_command, data_dir):

0 commit comments

Comments
 (0)