guix: gnuboot-trisquel-preseed.img: enable to disable tests.
The image resulting from the gnuboot-trisquel-preseed.img package is checked against checksums inside the 'check function of this package. If for some reasons we want to update the checksums, an easy way to do it is to build the package but not run the 'check function and do the checksum on the resulting file. The Guix 1.4.0 manual explains how to not run 'check with the "--without-tests=package" option in the "10.1.2 Package Transformation Options" section. However if we attempt that with the following command, the without-tests has no impact at all: $ guix time-machine --commit=v1.4.0 -- build -L resources/guix/ \ gnuboot-trisquel-preseed.img \ --without-tests=gnuboot-trisquel-preseed.img This changes makes the above command work as expected. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> Acked-by: Adrien 'neox' Bourmault <neox@gnu.org>
This commit is contained in:
parent
bcb729a8aa
commit
40fcb94e2f
|
@ -277,10 +277,11 @@ manually.")
|
||||||
(lambda _
|
(lambda _
|
||||||
(mkdir-p (string-append #$output "/share/trisquel-installer/"))
|
(mkdir-p (string-append #$output "/share/trisquel-installer/"))
|
||||||
(install-file "preseed.img" (string-append #$output "/share/trisquel-installer/"))))
|
(install-file "preseed.img" (string-append #$output "/share/trisquel-installer/"))))
|
||||||
(replace
|
(replace
|
||||||
'check
|
'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(invoke "sha512sum" "-c" "preseed.img.sha512"))))))
|
(if tests?
|
||||||
|
(invoke "sha512sum" "-c" "preseed.img.sha512")))))))
|
||||||
(synopsis "Preseed configuration as a FAT12 filesystem.")
|
(synopsis "Preseed configuration as a FAT12 filesystem.")
|
||||||
(description "FAT12 filesystem with inside a preseed.cfg file for automatic install,
|
(description "FAT12 filesystem with inside a preseed.cfg file for automatic install,
|
||||||
as well as dependencies for the preseed.cfg, such as the files
|
as well as dependencies for the preseed.cfg, such as the files
|
||||||
|
|
Loading…
Reference in New Issue