File: tests-gexp.scm-references-file-Skip-test-depending-o.patch

package info (click to toggle)
guix 1.4.0-9
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 161,500 kB
  • sloc: lisp: 861,023; cpp: 10,741; javascript: 9,632; sh: 8,913; makefile: 951; ansic: 558; python: 129; sql: 33; sed: 16
file content (25 lines) | stat: -rw-r--r-- 882 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
23
24
25
From 95b8979a538ec420a7ef6906bf7640422fd1edba Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 23 Oct 2022 15:33:19 -0700
Subject: [PATCH] tests/gexp.scm: references-file: Skip test depending on
 bootstrap binaries when network is not reachable.

---
 tests/gexp.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/gexp.scm b/tests/gexp.scm
index 6d57ac5d7a..0446ed6d32 100644
--- a/tests/gexp.scm
+++ b/tests/gexp.scm
@@ -1605,6 +1605,7 @@ importing.* \\(guix config\\) from the host"
                    (not (member (derivation-file-name native) refs))
                    (member (derivation-file-name cross) refs))))))
 
+(unless (network-reachable?) (test-skip 1))
 (test-assertm "references-file"
   (let* ((exp      #~(symlink #$%bootstrap-guile #$output))
          (computed (computed-file "computed" exp
-- 
2.35.1