summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVagrant Cascadian <vagrant@debian.org>2021-11-26 12:13:45 -0800
committerVagrant Cascadian <vagrant@debian.org>2021-12-17 21:04:25 -0800
commit5f547a5c425cc99553ea713703e09a8db9f3c38b (patch)
treec0ce76b6419e20dab3b03915f606cf557381fb6f /tests
parent3b2b42034c42ccb1dd8845bc03dd3a8053b54aca (diff)
downloadguix-patches-5f547a5c425cc99553ea713703e09a8db9f3c38b.tar
guix-patches-5f547a5c425cc99553ea713703e09a8db9f3c38b.tar.gz
lint: Adjust patch file length check.
With the switch to "ustar" format in commit bdf5c16ac052af2ca9d5c3acc4acbc08fd9fdbea, the maximum file length has increased. * guix/lint.scm (check-patch-file-names): Adjust margin used to check for patch file lengths. Increase allowable patch file length appropriate to new tar format. Extend warning to explain that long files may break 'make dist'. * tests/lint.scm: Update tests accordingly.
Diffstat (limited to 'tests')
-rw-r--r--tests/lint.scm8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lint.scm b/tests/lint.scm
index e9663e69f9..76c2a70b3a 100644
--- a/tests/lint.scm
+++ b/tests/lint.scm
@@ -520,17 +520,17 @@
(file-name "x.patch")))))))))
(check-patch-file-names pkg)))
-(test-equal "patches: file name too long"
+(test-equal "patches: file name too long, which may break 'make dist'"
(string-append "x-"
- (make-string 100 #\a)
- ".patch: file name is too long")
+ (make-string 152 #\a)
+ ".patch: file name is too long, which may break 'make dist'")
(single-lint-warning-message
(let ((pkg (dummy-package
"x"
(source
(dummy-origin
(patches (list (string-append "x-"
- (make-string 100 #\a)
+ (make-string 152 #\a)
".patch"))))))))
(check-patch-file-names pkg))))