From: Steven Rostedt <srostedt@redhat.com>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: ktest.pl always returns 0?
Date: Tue, 25 Sep 2012 14:15:17 -0400 [thread overview]
Message-ID: <1348596917.6786.12.camel@fedora> (raw)
In-Reply-To: <20120925180028.GA22896@kroah.com>
On Tue, 2012-09-25 at 11:00 -0700, Greg KH wrote:
> Hi Steven,
Note, emailing my RH account is hit or miss. If I'm traveling I don't
read it, and I wont return messages until I'm back. It's best to email
my rostedt@goodmis.org account, as I have better access to that account.
I author my patches by the email of the people that pay me to write
them. This isn't for your "who wrote the kernel" scripts. This is for
anyone that happens to do a git log.
>
> I'm trying to use ktest to do build tests of the stable patch series to
> verify I didn't mess anything up, but I'm finding that ktest always
> returns 0 when finished, no matter if the build test was successful or
> failed.
Hmm, I should fix that. Yeah, I agree, if it fails a test it should
return something other than zero. But I think that only happens if you
have DIE_ON_FAILURE = 0. As IIRC, the perl "die" command should exit the
application with an error code.
But yeah, I agree, if one of the tests fail, the error code should not
be zero. I'll write up a patch to fix that. Or at least add an option to
make that happen.
>
> Is this right? Is there some other way to determine if ktest fails
> other than greping the output log?
If you have DIE_ON_FAILURE = 1 (default) it should exit with non zero.
>
> Oh, and any hints on kicking off a ktest process on a remote machine in
> a "simple" way? I'm just using ssh to copy over a script that runs
> there, wrapping ktest.pl up with other stuff, I didn't miss the fact
> that ktest itself can run remotely already, did I?
I'm a little confused by this question. Do you want a server ktest? That
is, have a ktest daemon that listens for clients that sends it config
files and then runs them? That would actually be a fun project ;-)
You're not running ktest on the target machine are you? The way I use it
is the following:
I have a server that I ssh to and run ktest from. It does all the builds
there on the server and this server has a means to monitor some target.
I use ttywatch that connects to the serial of the target, in which ktest
uses to read from.
Sometimes this "server" is the machine I'm logged in to. And I just run
ktest directly.
Can you explain more of what you are looking for?
Thanks!
-- Steve
next prev parent reply other threads:[~2012-09-25 18:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-25 18:00 ktest.pl always returns 0? Greg KH
2012-09-25 18:15 ` Steven Rostedt [this message]
2012-09-25 19:40 ` Greg KH
2012-09-25 20:33 ` Steven Rostedt
2012-09-25 23:48 ` Steven Rostedt
2012-09-26 16:21 ` Greg KH
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=1348596917.6786.12.camel@fedora \
--to=srostedt@redhat.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
/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