File: binary-path.patch

package info (click to toggle)
aiocoap 0.4.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,756 kB
  • sloc: python: 16,846; makefile: 23; sh: 9
file content (40 lines) | stat: -rw-r--r-- 1,328 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Description: Run test_commandline against installed programs

Don't assume that we're running in the source tree.

Author: Mazen Neifer <mazen@debian.org>

Origin: Stefano Rivera <stefanor@debian.org>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Forwarded: not-needed
Last-Update: 2025-04-03
---

Index: aiocoap/tests/test_commandline.py
===================================================================
--- aiocoap.orig/tests/test_commandline.py
+++ aiocoap/tests/test_commandline.py
@@ -19,8 +19,8 @@ from .common import PYTHON_PREFIX
 
 linkheader_modules = aiocoap.defaults.linkheader_missing_modules()
 
-AIOCOAP_CLIENT = PYTHON_PREFIX + ["./aiocoap-client"]
-AIOCOAP_RD = PYTHON_PREFIX + ["./aiocoap-rd"]
+AIOCOAP_CLIENT = PYTHON_PREFIX + ['/usr/bin/aiocoap-client']
+AIOCOAP_RD = PYTHON_PREFIX + ['/usr/bin/aiocoap-rd']
 
 
 class TestCommandlineClient(WithTestServer):
Index: aiocoap/tests/test_fileserver.py
===================================================================
--- aiocoap.orig/tests/test_fileserver.py
+++ aiocoap/tests/test_fileserver.py
@@ -27,7 +27,7 @@ from .test_server import WithAsyncLoop,
 
 SERVER_NETLOC = hostportjoin("::1", None)
 AIOCOAP_FILESERVER = PYTHON_PREFIX + [
-    "./aiocoap-fileserver",
+    '/usr/bin/aiocoap-fileserver',
     "--write",
     "--bind",
     SERVER_NETLOC,