1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/net/gcoap_fileserver: fix path to zep_dispatch

This commit is contained in:
Alexandre Abadie 2023-05-12 16:42:05 +02:00
parent ab658eddb0
commit 25517c8739
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -6,6 +6,7 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import subprocess
import time
@ -16,6 +17,8 @@ from riotctrl.ctrl import RIOTCtrlBoardFactory
from riotctrl_ctrl import native
from riotctrl_shell.netif import IfconfigListParser
RIOTBASE = os.getenv("RIOTBASE", os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../")))
ZEP_DISPATCH_PATH = os.path.join(RIOTBASE, "dist/tools/zep_dispatch/bin/zep_dispatch")
PARSERS = {
"ping6": GNRCICMPv6EchoParser(),
"ifconfig": IfconfigListParser(),
@ -120,8 +123,7 @@ def test_linear_topology(factory, zep_dispatch):
def run_test(func, factory):
with Popen(['../../dist/tools/zep_dispatch/bin/zep_dispatch',
'-t', '-', '127.0.0.1', '17754'], stdin=subprocess.PIPE) as zep_dispatch:
with Popen([ZEP_DISPATCH_PATH, '-t', '-', '127.0.0.1', '17754'], stdin=subprocess.PIPE) as zep_dispatch:
try:
func(factory, zep_dispatch)
finally: