summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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)