Re: [PATCH 8/8] ktest: Use config-bisect.pl in ktest.pl
From: Scott Wood
Date: Wed Oct 04 2017 - 16:24:30 EST
On Wed, 2017-10-04 at 15:18 -0400, Steven Rostedt wrote:
> On Sun, 16 Jul 2017 19:16:30 -0500
> Scott Wood <swood@xxxxxxxxxx> wrote:
>
> > Reduce code duplication and take advantage of bisection logic
> > improvements by calling config-bisect.pl.
> >
> > The output of make oldconfig is now copied directly to the desired
> > file,
> > rather than doing assign_configs+save_config, in order to preserve
> > the
> > ordering so that diffing the configs at the end will provide useful
> > output.
>
> The reason I never did this, was that I copy ktest.pl all over the
> place :-/ I need it to be a stand alone. I don't copy config-bisect
> around. Not sure how to deal with this.
By "this" I assume you mean using the external config-bisect code,
rather than the part about copying oldconfig output?
The options I can see are to copy both files as a group (possibly making
that easier by renaming config-bisect.pl to ktest-conf-bisect.pl, so you
can "cp tools/testing/ktest/ktest*.pl <dest>"), or just living with code
duplication. In a previous discussion you suggested you preferred that
latter option, though in that case the config bisect logic changes
should ideally be done before the fork.
It should also be noted that ktest.pl only depends on config-bisect.pl
if a config bisect is being performed, so other ktest.pl functions still
work standalone.
-Scott