public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [RFC] ltp test add reboot function
Date: Wed, 30 Sep 2020 16:05:08 +0200	[thread overview]
Message-ID: <20200930140508.GA12097@yuki.lan> (raw)
In-Reply-To: <CAF12kFvbGhhwyAFnkv+3w2dwvVovTOeE5z+OnqiGz+rQ-5y6ZA@mail.gmail.com>

Hi!
> I considered  running ltp with reboot function by HOST controller.
> And here I found that if case need reboot before or after it run. the
> HOST controller
> is easy to implement, BUT when the case want reboot between it's verify_func
> I hava no idea that how to continue run the rest verify_func
> continuing after reboot.
> Can you give some guidance?

I guess that we would have to add a command line parameter to the test
library to tell the testcase to continue with the second half of the
test. Then after the reboot the testcase would be executed with that
option so that it knows that we are running it for a second time and
then we have to pass that to the testcases.

And since the uClinux support is dead, we are free to reuse the -C flag
for this purpose. Probably easiest solution would be to set a global
variable (named tst_rebooted or something similar) if -C was passed to
the test on a command line, then we can use the value of this variable
in the test setup/verify/cleanup functions.

-- 
Cyril Hrubis
chrubis@suse.cz

  reply	other threads:[~2020-09-30 14:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-21  2:29 [LTP] [RFC] ltp test add reboot function Cixi Geng
2020-08-21 12:23 ` Petr Vorel
2020-08-24  7:42 ` Cyril Hrubis
2020-08-25  1:52   ` Cixi Geng
2020-08-28 13:06     ` Cyril Hrubis
2020-08-28 15:37       ` Bird, Tim
2020-09-03  1:48         ` Cixi Geng
2020-09-03  3:13           ` Bird, Tim
2020-09-03  9:24           ` Cyril Hrubis
2020-09-30  1:55             ` Cixi Geng
2020-09-30 14:05               ` Cyril Hrubis [this message]
2020-09-30 16:01                 ` Bird, Tim
2020-10-01 11:03                   ` Cyril Hrubis

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=20200930140508.GA12097@yuki.lan \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox