File: 0002-Use-executable-name-in-tests.patch

package info (click to toggle)
cpplint 2.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,356 kB
  • sloc: cpp: 13,681; python: 10,095; ansic: 854; sh: 30; makefile: 18
file content (22 lines) | stat: -rw-r--r-- 660 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Jochen Sprickerhof <jspricke@debian.org>
Date: Thu, 16 Oct 2025 15:03:14 +0200
Subject: Use executable name in tests

Needed for autopkgtests
---
 cpplint_clitest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpplint_clitest.py b/cpplint_clitest.py
index b20566f..f3013d7 100755
--- a/cpplint_clitest.py
+++ b/cpplint_clitest.py
@@ -43,7 +43,7 @@ from testfixtures import compare  # type: ignore[import-untyped]
 
 import cpplint  # noqa: F401
 
-BASE_CMD = sys.executable + " " + os.path.abspath("./cpplint.py ")
+BASE_CMD = "cpplint"
 
 
 def run_shell_command(cmd: str, args: str, cwd: str = ".") -> tuple[int, bytes, bytes]: