[CRIU] [PATCH 1/2] zdtm.py: add --dry-run

Tycho Andersen tycho.andersen at canonical.com
Tue Mar 1 07:05:53 PST 2016


On Tue, Mar 01, 2016 at 01:05:12PM +0300, Pavel Emelyanov wrote:
> On 03/01/2016 02:56 AM, Tycho Andersen wrote:
> > Mostly so I could test my -x pattern in the next patch, feel free to drop
> > if you want, but maybe it'll be useful for someone else :)
> 
> Am I right that the goal is to just check what tests would be run after all
> the exclude/checkskips/etc stuff passed?

Yep, feel free to drop it if you want, I just didn't have another
great way to test the travis -x patch.

Tycho

> > Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
> > ---
> >  test/zdtm.py | 3 +++
> >  1 file changed, 3 insertions(+)
> > 
> > diff --git a/test/zdtm.py b/test/zdtm.py
> > index 1ace919..5ead3ac 100755
> > --- a/test/zdtm.py
> > +++ b/test/zdtm.py
> > @@ -988,6 +988,8 @@ class launcher:
> >  
> >  		self.__nr += 1
> >  		self.__show_progress()
> > +		if self.__opts['dry_run'] is True:
> > +			return
> >  
> >  		nd = ('nocr', 'norst', 'pre', 'iters', 'page_server', 'sibling', \
> >  				'fault', 'keep_img', 'report', 'snaps', 'sat', \
> > @@ -1371,6 +1373,7 @@ rp.add_argument("--freezecg", help = "Use freeze cgroup (path:state)")
> >  rp.add_argument("--user", help = "Run CRIU as regular user", action = 'store_true')
> >  
> >  rp.add_argument("--page-server", help = "Use page server dump", action = 'store_true')
> > +rp.add_argument("--dry-run", help="Don't run tests, just pretend to", action='store_true')
> >  rp.add_argument("-p", "--parallel", help = "Run test in parallel")
> >  
> >  rp.add_argument("-k", "--keep-img", help = "Whether or not to keep images after test",
> > 
> 


More information about the CRIU mailing list