mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
tests: Installation test no longer requires KVM.
* gnu/tests/install.scm (%test-installed-os): Use '-enable-kvm' only when /dev/kvm exists.
This commit is contained in:
parent
f10dcbf1a9
commit
f6d5456b1b
1 changed files with 7 additions and 4 deletions
|
@ -200,10 +200,13 @@ (define %test-installed-os
|
|||
(format #t "copying image '~a'...~%" image)
|
||||
(copy-file image "disk.img")
|
||||
(chmod "disk.img" #o644)
|
||||
(list (string-append #$qemu-minimal "/bin/"
|
||||
#$(qemu-command system))
|
||||
"-enable-kvm" "-no-reboot" "-m" "256"
|
||||
"-drive" "file=disk.img,if=virtio"))
|
||||
`(,(string-append #$qemu-minimal "/bin/"
|
||||
#$(qemu-command system))
|
||||
,@(if (file-exists? "/dev/kvm")
|
||||
'("-enable-kvm")
|
||||
'())
|
||||
"-no-reboot" "-m" "256"
|
||||
"-drive" "file=disk.img,if=virtio"))
|
||||
"installed-os")))))
|
||||
|
||||
;;; install.scm ends here
|
||||
|
|
Loading…
Reference in a new issue