File: 0003-do-not-run-go-tests-from-python-testcode.patch

package info (click to toggle)
kitty 0.42.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 28,564 kB
  • sloc: ansic: 82,787; python: 55,191; objc: 5,122; sh: 1,295; xml: 364; makefile: 143; javascript: 78
file content (21 lines) | stat: -rw-r--r-- 707 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
From: Nilesh Patra <nilesh@debian.org>
Date: Wed, 8 Nov 2023 14:27:36 +0000
Subject: Do not run tests inside go testing directory
Forwarded: no

Use dh-golang's buildsystem to test instead of kitty's upstream system

--- a/kitty_tests/main.py
+++ b/kitty_tests/main.py
@@ -261,10 +261,7 @@
         type_check()
     go_pkgs = reduce_go_pkgs(args.module, args.name)
     os.environ['ASAN_OPTIONS'] = 'detect_leaks=0'  # ensure subprocesses dont fail because of leak detection
-    if go_pkgs:
-        go_proc: 'Optional[GoProc]' = run_go(go_pkgs, args.name)
-    else:
-        go_proc = None
+    go_proc = None
     with env_for_python_tests(report_env):
         if go_pkgs:
             if report_env: