All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>,
	 "openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 3/3] oeqa/selftest: Drop 'backup' code and SIGTERM	handler
Date: Wed, 19 Feb 2020 22:28:29 +0000	[thread overview]
Message-ID: <ebdc25b73de411d372cb332d91b31ba09db017e0.camel@linuxfoundation.org> (raw)
In-Reply-To: <d19c8ec2557b4e008b2965247c7c6225@XBOX03.axis.com>

On Wed, 2020-02-19 at 22:26 +0000, Peter Kjellerstedt wrote:
> > -----Original Message-----
> > From: openembedded-core-bounces@lists.openembedded.org <
> > openembedded-core-bounces@lists.openembedded.org> On Behalf Of
> > Richard Purdie
> > Sent: den 19 februari 2020 19:38
> > To: openembedded-core@lists.openembedded.org
> > Subject: [OE-core] [PATCH 3/3] oeqa/selftest: Drop 'backup' code
> > and SIGTERM handler
> > 
> > Now selftest is using its own copied build directory, we can stop
> > worrying about
> > copying files around as backup, and drop the SIGTERM handler to try
> > and restore
> > them, simplifying the code.
> > 
> > Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> > ---
> >  meta/lib/oeqa/selftest/case.py    | 30 +-------------------
> >  meta/lib/oeqa/selftest/context.py | 47 ++-------------------------
> > ----
> >  2 files changed, 4 insertions(+), 73 deletions(-)
> 
> [cut]
> 
> > @@ -329,18 +311,9 @@ class
> > OESelftestTestContextExecutor(OETestContextExecutor):
> > 
> >          return rc
> > 
> > -    def _signal_clean_handler(self, signum, frame):
> > -        if self.ourpid == os.getpid():
> > -            sys.exit(1)
> > -
> >      def run(self, logger, args):
> >          self._process_args(logger, args)
> > 
> > -        # Setup a SIGTERM handler to allow restoration of files
> > like local.conf and bblayers.conf
> > -        # but don't interfer with other processes
> > -        self.ourpid = os.getpid()
> > -        signal.signal(signal.SIGTERM, self._signal_clean_handler)
> > -
> 
> What's the point of the first patch in this series, when you just 
> remove it all again here in the third patch?

The bug affects stable series builds as well as master. We're probably
unlikely to accept 2/3 or 3/3 into stable builds? I therefore wrote it
as a series, just in case the stable maintainers do pick up 1/3 which
I'd figured out before writing 2/3 and 3/3.

Cheers,

Richard




      reply	other threads:[~2020-02-19 22:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-19 18:38 [PATCH 1/3] selftest/context: Avoid tracebacks from tests using multiprocessing Richard Purdie
2020-02-19 18:38 ` [PATCH 2/3] oeqa/selftest: Startardise seperate builddir for concurrent and non-concurrent selftest Richard Purdie
2020-02-19 18:38 ` [PATCH 3/3] oeqa/selftest: Drop 'backup' code and SIGTERM handler Richard Purdie
2020-02-19 22:26   ` Peter Kjellerstedt
2020-02-19 22:28     ` Richard Purdie [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ebdc25b73de411d372cb332d91b31ba09db017e0.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=peter.kjellerstedt@axis.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.