Skip to content

Commit

Permalink
tests: fix test_kvm_bios target when current directory is not readabl…
Browse files Browse the repository at this point in the history
…e by libvirt

- make libvirt storage path configurable
  • Loading branch information
nodiscc committed Mar 15, 2022
1 parent a5fc237 commit d2743e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# source is needed to work in a python virtualenv
SHELL := /bin/bash
LAST_TAG := $(shell git describe --tags --abbrev=0)
LIBVIRT_STORAGE_PATH := /var/lib/libvirt/images/

# remove 'download_extra' to build without third party software/dotfiles
all: install_buildenv download_extra build
Expand Down Expand Up @@ -72,7 +73,7 @@ test_imagesize:
# rsync -avzP $BUILD_HOST:/var/debian-live-config/debian-live-config/iso/ ./
test_kvm_bios:
# Run the resulting image in KVM/virt-manager (legacy BIOS mode)
virt-install --name dlc-test --boot cdrom --video virtio --disk path=$$PWD/dlc-test-disk0.qcow2,format=qcow2,size=20,device=disk,bus=virtio,cache=none --cdrom 'iso/dlc-$(LAST_TAG)-debian-bullseye-amd64.hybrid.iso' --memory 4096 --vcpu 2
virt-install --name dlc-test --boot cdrom --video virtio --disk path=$(LIBVIRT_STORAGE_PATH)/dlc-test-disk0.qcow2,format=qcow2,size=20,device=disk,bus=virtio,cache=none --cdrom "$(LIBVIRT_STORAGE_PATH)iso/dlc-$(LAST_TAG)-debian-bullseye-amd64.hybrid.iso" --memory 4096 --vcpu 2
virsh destroy dlc-test
virsh undefine dlc-test
rm -f $$PWD/dlc-test-disk0.qcow2
Expand Down

0 comments on commit d2743e0

Please sign in to comment.