test: Properly clean up test VM on image preparation
Remove the entire previous overlay instead of just removing the built package. This ensures that there are no leftovers from previous interactive debugging sessions. This has already shown to lead to confusion in practice in cockpit-podman. Closes #44
This commit is contained in:
parent
fd59f8629b
commit
6e05f5b483
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
|
@ -118,7 +118,8 @@ rpm: dist-gzip cockpit-$(PACKAGE_NAME).spec
|
||||||
|
|
||||||
# build a VM with locally built rpm installed
|
# build a VM with locally built rpm installed
|
||||||
$(VM_IMAGE): rpm bots
|
$(VM_IMAGE): rpm bots
|
||||||
bots/image-customize -v -r 'rpm -e cockpit-$(PACKAGE_NAME) || true' -i cockpit -i `pwd`/cockpit-$(PACKAGE_NAME)-*.noarch.rpm -s $(CURDIR)/test/vm.install $(TEST_OS)
|
rm -f $(VM_IMAGE)
|
||||||
|
bots/image-customize -v -i cockpit -i `pwd`/cockpit-$(PACKAGE_NAME)-*.noarch.rpm -s $(CURDIR)/test/vm.install $(TEST_OS)
|
||||||
|
|
||||||
# convenience target for the above
|
# convenience target for the above
|
||||||
vm: $(VM_IMAGE)
|
vm: $(VM_IMAGE)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue