File: 0022-tests-publish.scm-Disable-test-requiring-bootstrap-b.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-- 808 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 650d967675066f180ee8d1eb33343923981c386d Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@debian.org>
Date: Tue, 10 Nov 2020 18:47:38 -0800
Subject: [PATCH 22/29] tests/publish.scm: Disable test requiring bootstrap
 binaries when networking is unavailable.

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

diff --git a/tests/publish.scm b/tests/publish.scm
index 3e67c435ac..9de01d111b 100644
--- a/tests/publish.scm
+++ b/tests/publish.scm
@@ -382,6 +382,7 @@ References: ~%"
         (display "This file is not a valid store item." port)))
     (response-code (http-get (publish-uri (string-append "/nar/invalid"))))))
 
+(unless (network-reachable?) (test-skip 1))
 (test-equal "/file/NAME/sha256/HASH"
   "Hello, Guix world!"
   (let* ((data "Hello, Guix world!")
-- 
2.30.2