From: Miroslav V. <mva...@re...> - 2012-02-15 08:55:08
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Linda, this simple cleanup for kvm tests should be enough according to my testing. Could you maybe try it out if you are after a kvm test run and confirm it works for you too? Thanks, /M On 02/15/2012 09:53 AM, mva...@re... wrote: > From: Miroslav Vadkerti <mva...@re...> > > This patch adds clean target in kvm tests. This destroys and undefines > all KVM guests created for testing in kvm tests. > > Signed-off-by: Miroslav Vadkerti <mva...@re...> > --- > audit/kvm/Makefile | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/audit/kvm/Makefile b/audit/kvm/Makefile > index 56e23ec..10c5fa6 100644 > --- a/audit/kvm/Makefile > +++ b/audit/kvm/Makefile > @@ -20,3 +20,6 @@ > TOPDIR = .. > > include $(TOPDIR)/rules.mk > + > +clean: > + for machine in $$(virsh list --all 2>&1 | grep KVM-Guest- | awk '{print $$2}'); do virsh destroy $$machine; virsh undefine $$machine; done - -- Miroslav Vadkerti :: QA Engineer / RHCE :: BaseOS QE - Security IRC mvadkert at #qe #urt #rpmdiff :: GnuPG ID 0x25881087 at pgp.mit.edu Phone +420 532 294 129 :: CZ +420 775 039 842 :: SK +421 904 135 440 Red Hat s.r.o, Purky?ova 99/71, 612 45, Brno, Czech Republic -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPO3LXAAoJEBliWhMliBCHcSQIAKu8W3yqJWLghDpz12x+SAxL KdKFD3PHRW91JffO/36RYi82qYJESkL6Ia+jW+e7e7y5HcIQBrxu2ZsnZsApaML8 e52Ws2RAvQ8u2bG/YOzU6ofqi1VijN36q1hMdVLcMryD3Kqg62zS1wKcuKte/Uai MfiqdFABIuevicLEY6xpwzFyYPqHL8AOQeqvOFO/3QNyk9tw0oOQfOw4qm74+Ibv WC5LEktQOZYjY57IBdFCqRqxHoxQH/MjMcWBKz/p6nVCzi0gBMUDuRVImr/rFiTh z8Vdpzj7QU7NnkjtBq7IrD9Fto5of9+ChJOXX/NZ0nKvDXB25kEEiavRGBb+w0Q= =sdV+ -----END PGP SIGNATURE----- |