File: 0014-tests-size.scm-Disable-tests-requiring-bootstrap-bin.patch

package info (click to toggle)
guix 1.4.0%2B154928%2Bf1810-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 269,976 kB
  • sloc: lisp: 1,247,465; cpp: 10,769; javascript: 9,632; sh: 9,607; makefile: 1,103; ansic: 573; python: 78; php: 76; sql: 33; xml: 31; sed: 16
file content (33 lines) | stat: -rw-r--r-- 1,114 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
26
27
28
29
30
31
32
33
From 30b0fa8e81114a2f28694c1358963041d0f1053c Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@debian.org>
Date: Tue, 10 Nov 2020 15:30:33 -0800
Subject: [PATCH 14/29] tests/size.scm: Disable tests requiring bootstrap
 binaries when network is unavailable.

---
 tests/size.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/size.scm b/tests/size.scm
index 0aaa8fbc29..821b6f890d 100644
--- a/tests/size.scm
+++ b/tests/size.scm
@@ -33,6 +33,7 @@
 
 (test-begin "size")
 
+(unless (network-reachable?) (test-skip 1))
 (test-assertm "store-profile"
   (mlet* %store-monad ((file1 (gexp->derivation "file1"
                                                 #~(symlink #$%bootstrap-guile
@@ -78,6 +79,7 @@
                                     (profile-self-size profile3)
                                     (profile-self-size profile4))))))))))))
 
+(unless (network-reachable?) (test-skip 1))
 (test-assertm "store-profile with multiple items"
   (mlet* %store-monad ((file1 (gexp->derivation "file1"
                                                 #~(symlink #$%bootstrap-guile
-- 
2.30.2