File: 01_skip-net-tests.patch

package info (click to toggle)
appstream-generator 0.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,844 kB
  • sloc: cpp: 12,858; xml: 259; sh: 220; python: 103; makefile: 19
file content (24 lines) | stat: -rw-r--r-- 821 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
From 4ec6668252905c5059540f5bad5d907bc3469100 Mon Sep 17 00:00:00 2001
From: Matthias Klumpp <matthias@tenstral.net>
Date: Thu, 18 Sep 2025 22:54:38 +0200
Subject: [PATCH] tests: Allow network test to have all tests skipped

This is needed in environments where we can't run network-dependent
tests, like in package build environments.
---
 tests/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/meson.build b/tests/meson.build
index 31167cb..9902c82 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -24,7 +24,7 @@ tests_net = executable(
     dependencies: [catch2_dep, asgen_lib_dep],
     include_directories: [src_dir],
 )
-test('Network', tests_net)
+test('Network', tests_net, args: ['--allow-running-no-tests'])
 
 # Report generator tests
 tests_report = executable(