guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 0d226acc42616412ac64d6cfaa39a8debc600430
Author: Jelle Licht <[email protected]>
AuthorDate: Thu Oct 15 14:28:10 2026 +0200
tests: style: Fix "already git-fetch unchanged" test.
The test package referred to a version field without setting it which made
'guix style' exit with an error.
* tests/style.scm: Import 'invoke'.
("url-fetch->git-fetch, already git-fetch unchanged"): Add 'version' field.
Use 'invoke' instead of 'system*'.
---
tests/style.scm | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/tests/style.scm b/tests/style.scm
index 5168ab03fc7..38924127f15 100644
--- a/tests/style.scm
+++ b/tests/style.scm
@@ -24,7 +24,7 @@
#:use-module ((guix utils)
#:select (guile-version>?
call-with-temporary-directory))
- #:use-module ((guix build utils) #:select (substitute*))
+ #:use-module ((guix build utils) #:select (invoke substitute*))
#:use-module (guix gexp) ;for the reader extension
#:use-module (guix diagnostics)
#:use-module (guix git)
@@ -713,7 +713,8 @@
(test-assert "url-fetch->git-fetch, already git-fetch unchanged"
(call-with-test-package
- '((home-page "https://github.com/foo/bar")
+ '((version "1.0")
+ (home-page "https://github.com/foo/bar")
(source
(origin
(method git-fetch)
@@ -729,8 +730,8 @@
(define before-hash
(call-with-input-file file port-sha256))
- (system* "guix" "style" "-L" directory "-S" "git-source"
- "my-coreutils")
+ (invoke "guix" "style" "-L" directory "-S" "git-source"
+ "my-coreutils")
;; File should be unchanged
(equal? (call-with-input-file file port-sha256) before-hash))))