Skip to content

08-interop/task03: Just use premade binary #306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added 08-interop/task03-contiki-nrf52840.bin
Binary file not shown.
14 changes: 4 additions & 10 deletions 08-interop/test_spec08.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
import re
import sys
import subprocess


import pexpect.replwrap
Expand Down Expand Up @@ -59,22 +58,17 @@ def test_task01(riot_ctrl, log_nodes):
'nodes', [pytest.param(['nrf52840dk', 'nrf52840dk'])], indirect=['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__)),
)

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