From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 1/2] lib: Add support for test tags
Date: Tue, 15 Oct 2019 11:54:05 +0200 [thread overview]
Message-ID: <20191015095405.GB14021@rei> (raw)
In-Reply-To: <CAEemH2e+xD2OCFZs14ejmppKu2rLXKsr16Vfc3tqw-YoesWuJg@mail.gmail.com>
Hi!
> > +static void print_test_info(void)
> >
>
> print_test_info sounds like general information for the test, maybe
> print_tags() is a better/precise name?
I named it as such in a case that we will add anything else there, but I
do not have a strong opinion, I can change that if you insist.
> > +static void print_failure_hints(void)
> > +{
> > + unsigned int i;
> > + const struct tst_tag *tags = tst_test->tags;
> > +
> > + if (!tags)
> > + return;
> > +
> > + for (i = 0; tags[i].name; i++) {
> > + if (!strcmp(tags[i].name, "linux-git")) {
> > + printf("\n");
> > + print_colored("HINT: ");
>
> + printf("This is a regression test for linux kernel,
> > see commit:\n\n"
> > + LINUX_GIT_URL "%s\n", tags[i].value);
> >
>
> This sentence 'HINT: This is a ...' will be printed many times if there are
> many commits in tags, I prefer to see only once in front of these
> linux-kernel links.
Good catch, I will do something about this.
--
Cyril Hrubis
chrubis@suse.cz
next prev parent reply other threads:[~2019-10-15 9:54 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-14 11:25 [LTP] [PATCH 0/2] Add support for a test tags Cyril Hrubis
2019-10-14 11:25 ` [LTP] [PATCH 1/2] lib: Add support for " Cyril Hrubis
2019-10-15 5:12 ` Li Wang
2019-10-15 7:42 ` Richard Palethorpe
2019-10-15 9:57 ` Cyril Hrubis
2019-10-15 9:54 ` Cyril Hrubis [this message]
2019-10-16 13:30 ` Petr Vorel
2019-10-16 14:46 ` Cyril Hrubis
2019-10-16 19:43 ` Petr Vorel
2019-10-14 11:25 ` [LTP] [PATCH 2/2] testcases/kernel: Add linux git and CVE tags Cyril Hrubis
2019-10-15 4:54 ` Li Wang
2019-10-15 9:52 ` Cyril Hrubis
2019-10-16 13:21 ` Petr Vorel
2019-10-17 3:22 ` Li Wang
2019-10-17 8:38 ` Jan Stancek
-- strict thread matches above, loose matches on Subject: below --
2019-10-14 11:23 [LTP] [PATCH 0/2] Add support for a test tags Cyril Hrubis
2019-10-14 11:23 ` [LTP] [PATCH 1/2] lib: Add support for " 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=20191015095405.GB14021@rei \
--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 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.