me
/
guix
Archived
1
0
Fork 0

tests: Installation test no longer requires KVM.

* gnu/tests/install.scm (%test-installed-os): Use '-enable-kvm' only
when /dev/kvm exists.
master
Ludovic Courtès 2016-06-23 00:12:13 +02:00
parent f10dcbf1a9
commit f6d5456b1b
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 7 additions and 4 deletions

View File

@ -200,10 +200,13 @@ build (current-guix) and then store a couple of full system images.")
(format #t "copying image '~a'...~%" image) (format #t "copying image '~a'...~%" image)
(copy-file image "disk.img") (copy-file image "disk.img")
(chmod "disk.img" #o644) (chmod "disk.img" #o644)
(list (string-append #$qemu-minimal "/bin/" `(,(string-append #$qemu-minimal "/bin/"
#$(qemu-command system)) #$(qemu-command system))
"-enable-kvm" "-no-reboot" "-m" "256" ,@(if (file-exists? "/dev/kvm")
"-drive" "file=disk.img,if=virtio")) '("-enable-kvm")
'())
"-no-reboot" "-m" "256"
"-drive" "file=disk.img,if=virtio"))
"installed-os"))))) "installed-os")))))
;;; install.scm ends here ;;; install.scm ends here