~ruther/guix-local

f6d5456b1b5b55e1ef48388271b29a2e19a646f9 — Ludovic Courtès 9 years ago f10dcbf
tests: Installation test no longer requires KVM.

* gnu/tests/install.scm (%test-installed-os): Use '-enable-kvm' only
when /dev/kvm exists.
1 files changed, 7 insertions(+), 4 deletions(-)

M gnu/tests/install.scm
M gnu/tests/install.scm => gnu/tests/install.scm +7 -4
@@ 200,10 200,13 @@ build (current-guix) and then store a couple of full system images.")
                          (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