guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: tests: Disable test for freed disk space that fails on Btrfs.


From: Marius Bakke
Subject: 01/01: tests: Disable test for freed disk space that fails on Btrfs.
Date: Tue, 21 Nov 2017 16:54:46 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit 953c2de7061f18f55d8c51b72eb24945f436e80e
Author: Marius Bakke <address@hidden>
Date:   Tue Nov 21 22:42:56 2017 +0100

    tests: Disable test for freed disk space that fails on Btrfs.
    
    This is a follow-up to commit 40e89f5be609045bc2666cc16a4ef80bb7f84095.
    
    * tests/store.scm ("dead path can be explicitly collected"): Don't check
    that (> freed 0).
    * gnu/packages/package-management.scm (guix)[arguments]<#:phases>: Remove
    workaround for the same problem.
---
 gnu/packages/package-management.scm | 6 ------
 tests/store.scm                     | 4 +++-
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/package-management.scm 
b/gnu/packages/package-management.scm
index 0c7aef9..4b6db4c 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -182,12 +182,6 @@
                           (substitute* "tests/guix-environment-container.sh"
                             (("guix environment --version")
                              "exit 77\n")))
-                        ;; XXX: On some file systems (notably Btrfs), the test
-                        ;; for freed disk space after GC may fail.  See
-                        ;; <https://bugs.gnu.org/29363>.
-                        (substitute* "tests/store.scm"
-                          (("(\\(> freed 0\\))" all)
-                           (string-append ";" all)))
                         #t))
                     (add-before 'check 'set-SHELL
                       (lambda _
diff --git a/tests/store.scm b/tests/store.scm
index 45aeb32..fdf3be3 100644
--- a/tests/store.scm
+++ b/tests/store.scm
@@ -180,7 +180,9 @@
                               (random-text) '())))
     (let-values (((paths freed) (delete-paths %store (list p))))
       (and (equal? paths (list p))
-           (> freed 0)
+           ;; XXX: On some file systems (notably Btrfs), freed
+           ;; may return 0.  See <https://bugs.gnu.org/29363>.
+           ;;(> freed 0)
            (not (file-exists? p))))))
 
 (test-assert "add-text-to-store vs. delete-paths"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]