Skip to content

Commit

Permalink
Merge pull request #306 from RIOT-OS/pr/fix/contikisetup
Browse files Browse the repository at this point in the history
08-interop/task03: Just use premade binary
  • Loading branch information
mguetschow authored Jun 24, 2024
2 parents 3494887 + 58c9f35 commit 694ca38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
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

0 comments on commit 694ca38

Please sign in to comment.