diff options
| author | Greg Hogan <code@greghogan.com> | 2025-07-25 12:44:37 +0000 |
|---|---|---|
| committer | Greg Hogan <code@greghogan.com> | 2025-08-04 04:11:31 +0000 |
| commit | 1c3ed5f3baa8e3906a9261762060f546882a05f0 (patch) | |
| tree | 0a33b6e33406e8ec9ed0da06ea2792d4ae0bbe37 | |
| parent | 81884b098c0a11f8e8ae03392b56f5a8fd4493f1 (diff) | |
gnu: glib-networking: Skip flaky tests.
* gnu/packages/gnome.scm (glib-networking)[arguments]<#:phases>: Add
'mark-tests-for-exclusion phase.
<#:test-options>: Exclude flaky tests.
Change-Id: I535c57eb90e1629e9c1d4cb468da6c183e51bcf4
| -rw-r--r-- | gnu/packages/gnome.scm | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 55525b1052..174df89df4 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -5055,7 +5055,22 @@ indicators etc).") (list ;; TODO: Figure out why some tests SIGABRT on aarch64-linux. #:tests? (and (not (%current-target-system)) - (not (target-aarch64?))))) + (not (target-aarch64?))) + ;; Exclude flaky tests (see https://codeberg.org/guix/guix/issues/1377). + ;; Meson cannot exclude individual tests so the test suite is added in the + ;; phase below. + #:test-options #~(list "--no-suite" "connection") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'mark-tests-for-exclusion + (lambda _ + ;; The test names are programmatically generated in the meson + ;; build file. The two failing tests are "connection-gnutls" and + ;; "connection-gnutls-tls1.2" and share program[0] == "common", + ;; so use that as the suite name. + (substitute* "tls/tests/meson.build" + (("test\\(([^)]*)\\)" _ args) + (string-append "test(" args ", suite: program[0])")))))))) (native-inputs (list `(,glib "bin") ; for gio-querymodules pkg-config gettext-minimal)) |
