From: Lucas Meneghel Rodrigues <lmr@redhat.com>
To: Amos Kong <akong@redhat.com>
Cc: autotest@test.kernel.org, kvm@vger.kernel.org
Subject: Re: [Autotest] [PATCH 1/7] KVM test: Move test utilities to client/tools
Date: Fri, 11 Mar 2011 08:52:17 -0300 [thread overview]
Message-ID: <1299844337.2728.0.camel@freedom> (raw)
In-Reply-To: <20110311064740.GA4456@t400>
On Fri, 2011-03-11 at 14:47 +0800, Amos Kong wrote:
> On Wed, Mar 09, 2011 at 06:21:04AM -0300, Lucas Meneghel Rodrigues wrote:
> > The programs cd_hash, html_report, scan_results can be
> > used by other users of autotest, so move them to the
> > tools directory inside the client directory.
> >
> > Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
> > ---
> > client/tools/cd_hash.py | 48 ++
> > client/tools/html_report.py | 1727 ++++++++++++++++++++++++++++++++++++++++++
> > client/tools/scan_results.py | 97 +++
> > 3 files changed, 1872 insertions(+), 0 deletions(-)
> > create mode 100644 client/tools/__init__.py
> > create mode 100755 client/tools/cd_hash.py
> > create mode 100755 client/tools/html_report.py
> > create mode 100755 client/tools/scan_results.py
> >
> > diff --git a/client/tools/__init__.py b/client/tools/__init__.py
> > new file mode 100644
> > index 0000000..e69de29
> > diff --git a/client/tools/cd_hash.py b/client/tools/cd_hash.py
> > new file mode 100755
> > index 0000000..04f8cbe
> > --- /dev/null
> > +++ b/client/tools/cd_hash.py
> > @@ -0,0 +1,48 @@
> > +#!/usr/bin/python
> > +"""
> > +Program that calculates several hashes for a given CD image.
> > +
> > +@copyright: Red Hat 2008-2009
> > +"""
> > +
> > +import os, sys, optparse, logging
> > +import common
> > +import kvm_utils
>
> is it allowed to execute tools singlely?
> and kvm_utils.py has been dropped.
Ok, those were a mistake of mine. Will fix and update the branch,
thanks!
> # client/tools/scanf_results.py .... (ok)
>
> # client/tools/cd_hash.py (failed)
> Traceback (most recent call last):
> File "client/tools/cd_hash.py", line 9, in <module>
> import common
> ImportError: No module named common
>
>
> > +from autotest_lib.client.common_lib import logging_manager
> > +from autotest_lib.client.bin import utils
> > +
> > +
> > +if __name__ == "__main__":
> > + parser = optparse.OptionParser("usage: %prog [options] [filenames]")
> > + options, args = parser.parse_args()
> > +
> > + logging_manager.configure_logging(kvm_utils.KvmLoggingConfig())
> > +
> > + if args:
> > + filenames = args
> > + else:
> > + parser.print_help()
> > + sys.exit(1)
>
> ....
> > diff --git a/client/tools/html_report.py b/client/tools/html_report.py
>
>
> I've executed a serial tests, but no result.html produced.
>
> > new file mode 100755
> > index 0000000..8b4b109
> > --- /dev/null
> > +++ b/client/tools/html_report.py
> > @@ -0,0 +1,1727 @@
> > +#!/usr/bin/python
> > +"""
> > +Script used to parse the test results and generate an HTML report.
> > +
> > +@copyright: (c)2005-2007 Matt Kruse (javascripttoolbox.com)
> > +@copyright: Red Hat 2008-2009
> > +@author: Dror Russo (drusso@redhat.com)
> > +"""
>
> ....
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-03-11 11:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-09 9:21 [PATCH 0/7] [RFC] KVM autotest refactor stage 1 Lucas Meneghel Rodrigues
2011-03-09 9:21 ` [PATCH 1/7] KVM test: Move test utilities to client/tools Lucas Meneghel Rodrigues
2011-03-11 6:47 ` Amos Kong
2011-03-11 11:52 ` Lucas Meneghel Rodrigues [this message]
2011-03-11 21:18 ` [Autotest] " Lucas Meneghel Rodrigues
2011-03-09 9:21 ` [PATCH 2/7] KVM test: Create autotest_lib.client.virt namespace Lucas Meneghel Rodrigues
2011-03-09 9:21 ` [PATCH 3/7] KVM test: tests_base.cfg: Introduce parameter 'vm_type' Lucas Meneghel Rodrigues
2011-03-09 9:21 ` [PATCH 4/7] KVM test: Adapt the test code to use the new virt namespace Lucas Meneghel Rodrigues
2011-03-09 9:21 ` [PATCH 5/7] KVM test: Removing the old libraries and programs Lucas Meneghel Rodrigues
2011-03-09 9:21 ` [PATCH 6/7] KVM test: Try to load subtests on a shared tests location Lucas Meneghel Rodrigues
2011-03-09 9:21 ` [PATCH 7/7] KVM test: Moving generic tests to common tests area Lucas Meneghel Rodrigues
2011-03-09 11:54 ` [PATCH 0/7] [RFC] KVM autotest refactor stage 1 Lucas Meneghel Rodrigues
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=1299844337.2728.0.camel@freedom \
--to=lmr@redhat.com \
--cc=akong@redhat.com \
--cc=autotest@test.kernel.org \
--cc=kvm@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