[Swan-dev] ../../utils/runkvm.py

Antony Antony antony at phenome.org
Tue Jul 17 12:14:17 UTC 2018


On Mon, Jul 16, 2018 at 11:20:21AM -0400, Andrew Cagney wrote:
> On Mon, 16 Jul 2018 at 09:01, D. Hugh Redelmeier <hugh at mimosa.com> wrote:
> >
> > | From: Paul Wouters <paul at nohats.ca>
> >
> > | cd testing/pluto/sometest
> > | ../../utils/kvmrunner.py .
> >
> > It didn't work for me.  It boils down to:
> >
> >         error: Domain not found: no domain with matching name 'road'
> >
> > That's because I have this in my Makefile.inc.local:
> >         KVM_WORKERS=2
> >         KVM_PREFIX=a. b.
> > So I have two sets of machines, each with a prefix of a. or b.
> >
> > I figured out that this does work:
> >         ../../utils/kvmrunner.py --prefix=a. .
> 
> Yes,  I've been working on the assumption that 'make' is used to drive
> all this - it has complete knowledge of all dependencies (unlike
> kvmrunner.py).  However, fighting this is the reality that developers
> want an easy way to invoke an individual test.  'make' in a test
> directory?  kvmrun.py drive make with correct arguments?
> 
> (the alternative would be to hack up something so that kvmrunner
> somehow magically parse Makefile.inc.local (I don't want to create yet
> another config file).

I have run into similar issue when using swantest with prefixes.
Here is proposed patch to print prefxies in "make kvm-help"
then you could juggle inside the python.

or one could  have a specific target "make kvm-list-prefixes"
this could be cleaner.

-antony
-------------- next part --------------
>From 4706e063987318480e509eacb571b1d69ad965fb Mon Sep 17 00:00:00 2001
From: Antony Antony <antony at phenome.org>
Date: Tue, 17 Jul 2018 14:02:17 +0200
Subject: [PATCH] testing: kvm-help target list prefixes

---
 mk/kvm-targets.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mk/kvm-targets.mk b/mk/kvm-targets.mk
index 07cf1e9dc..8ca917338 100644
--- a/mk/kvm-targets.mk
+++ b/mk/kvm-targets.mk
@@ -1298,6 +1298,7 @@ Standard targets and operations:
     $(addprefix kvmsh-, $(KVM_LOCAL_DOMAINS))
         - login to the specific domain
         - if necessary, create and boot the domain
+    kvm-PREFIX $(KVM_PREFIXES)
 
     kvm-shutdown
         - shutdown all domains
-- 
2.14.4



More information about the Swan-dev mailing list