[PATCH] autobuild: fix quoting of --restrict-tests

Rowland Penny rpenny at samba.org
Tue Dec 19 09:12:42 UTC 2017


On Tue, 19 Dec 2017 20:54:40 +1300
Douglas Bagnall via samba-technical <samba-technical at lists.samba.org>
wrote:

> hi Jamie,
> 
> Thanks, that is obviously right.
> 
> >> Currently, one must use autobuild.py --restrict-tests="'test1
> >> test2'". Patch removes the need for the nested quoting. Review
> >> appreciated.
> >>
> > --- a/script/autobuild.py
> > +++ b/script/autobuild.py
> > @@ -83,7 +83,7 @@ tasks = {
> >  
> >      "samba-test-only" : [ ("configure", "./configure.developer
> > --with-selftest-prefix=./bin/ab  --abi-check-disable" +
> > samba_configure_params, "text/plain"), ("make", "make -j",
> > "text/plain"),
> > -                          ("test", "make test FAIL_IMMEDIATELY=1
> > TESTS=${TESTS}", "text/plain") ],
> > +                          ("test", "make test FAIL_IMMEDIATELY=1
> > TESTS=\"${TESTS}\"", "text/plain") ], 
> 
> though I would slightly prefer:
> 
>  +                          ("test", 'make test FAIL_IMMEDIATELY=1
> TESTS="${TESTS}"', "text/plain") ],
> 
> using single quotes for the python string to avoid backslashes inside.
> 
> Either way, RB+ me.
> 
> 
> Douglas
> 

Totally agree, except the line is over 80 characters ;-)

Rowland



More information about the samba-technical mailing list