summaryrefslogtreecommitdiff
path: root/tests/style.scm
diff options
context:
space:
mode:
authorReepca Russelstein <reepca@russelstein.xyz>2026-06-28 23:06:11 -0500
committerLudovic Courtès <ludo@gnu.org>2026-06-30 10:57:49 +0200
commitcb7c32bb672d17bdf6e08f156ad612cbb428f025 (patch)
tree17344ffe1e27f226528d9368fde493e417222c3e /tests/style.scm
parente3062240efe5f7348399759ceb14309936946757 (diff)
tests: style: conditionally disable two tests.
The length of the repository url causes it to go on its own line in 'guix build guix' but not in 'make check' from a regular checkout with a shorter TMPDIR. Skip the tests in the case where they are currently known to fail, until a proper fix can be implemented so that this doesn't block security fixes from being deployed. * tests/style.scm (%temporary-repository-file-name-too-long?): new variable. ("url-fetch->git-fetch, basic transformation", "url-fetch->git-fetch, preserved field" test cases): conditionally skip. Fixes: guix/guix#6946 Change-Id: I4c14a89dac042a556b829398d12242b67cf579cd Signed-off-by: Ludovic Courtès <ludo@gnu.org> Merges: #9623
Diffstat (limited to 'tests/style.scm')
-rw-r--r--tests/style.scm12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/style.scm b/tests/style.scm
index 60b99638dd6..5168ab03fc7 100644
--- a/tests/style.scm
+++ b/tests/style.scm
@@ -544,6 +544,16 @@
544;;; url-fetch->git-fetch transformation 544;;; url-fetch->git-fetch transformation
545;;; 545;;;
546 546
547(define %temporary-repository-file-name-too-long?
548 ;; Whether the file name of the repository created by
549 ;; 'with-temporary-git-repository' would be "too long." If it is too long
550 ;; --e.g,
551 ;; file:///tmp/guix-build-guix-1.5.0-3.17ec386.drv-0/guix-directory.lhhGOq--,
552 ;; the indentation rules differ, which would cause test failures below.
553 (> (string-length (or (getenv "TMPDIR") "/tmp")) 30))
554
555(when %temporary-repository-file-name-too-long?
556 (test-skip 1))
547(test-equal "url-fetch->git-fetch, basic transformation" 557(test-equal "url-fetch->git-fetch, basic transformation"
548 `((origin 558 `((origin
549 (method git-fetch) 559 (method git-fetch)
@@ -587,6 +597,8 @@
587 (read-package-field (@ (my-packages-0) my-coreutils-0) 'source 8))))) 597 (read-package-field (@ (my-packages-0) my-coreutils-0) 'source 8)))))
588 "0")) 598 "0"))
589 599
600(when %temporary-repository-file-name-too-long?
601 (test-skip 1))
590(test-equal "url-fetch->git-fetch, preserved field" 602(test-equal "url-fetch->git-fetch, preserved field"
591 `((origin 603 `((origin
592 (method git-fetch) 604 (method git-fetch)