Skip to content

Commit

Permalink
08-interop/task03: Just use premade binary
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKevinWeiss committed Apr 18, 2024
1 parent 52e599e commit daa146a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
Binary file added 08-interop/task03-contiki-nrf52840.bin
Binary file not shown.
18 changes: 11 additions & 7 deletions 08-interop/test_spec08.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,25 @@ def test_task01(riot_ctrl, log_nodes):
)
def test_task03(riot_ctrl):
# run `./compile_contiki.sh` relative to this file
subprocess.check_call(
["./compile_contiki.sh"],
cwd=os.path.dirname(os.path.realpath(__file__)),
)
# subprocess.check_call(
# ["./compile_contiki.sh"],
# cwd=os.path.dirname(os.path.realpath(__file__)),
# )

# build_path = "build/nrf52840/dk/hello-world.nrf52840"
# flashfile = f"/tmp/contiki-ng/examples/hello-world/{build_path}"

build_path = "build/nrf52840/dk/hello-world.nrf52840"
flashfile = f"/tmp/contiki-ng/examples/hello-world/{build_path}"
# get the current directory of this file
current_dir = os.path.dirname(os.path.realpath(__file__))
contiki_bin_file = os.path.join(current_dir, "task03-contiki-nrf52840.bin")

gnrc_node, contiki_node = (
riot_ctrl(0, GNRC_APP, Shell),
riot_ctrl(
1,
'examples/hello-world',
riotctrl.shell.ShellInteraction,
extras={"BINFILE": flashfile},
extras={"BINFILE": contiki_bin_file},
),
)

Expand Down

0 comments on commit daa146a

Please sign in to comment.