Skip to content

Commit bc2d0b6

Browse files
committed
Test fix: use --output-dir option instead of deprecated --output
1 parent 4df8166 commit bc2d0b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_compile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ def test_compile_with_simple_sketch(run_command, data_dir, working_dir):
7474
expected_trace_sequence, json_log_lines
7575
)
7676

77-
# Test the --output flag with absolute path
78-
target = os.path.join(data_dir, "test.hex")
77+
# Test the --output-dir flag with absolute path
78+
target = os.path.join(data_dir, "test_dir")
7979
result = run_command(
80-
"compile -b {fqbn} {sketch_path} -o {target}".format(
80+
"compile -b {fqbn} {sketch_path} --output-dir {target}".format(
8181
fqbn=fqbn, sketch_path=sketch_path, target=target
8282
)
8383
)
8484
assert result.ok
85-
assert os.path.exists(target)
85+
assert os.path.exists(target) and os.path.isdir(target)
8686

8787

8888
@pytest.mark.skipif(

0 commit comments

Comments
 (0)