From: Amos Kong <akong@redhat.com>
To: Lucas Meneghel Rodrigues <lmr@redhat.com>
Cc: autotest@test.kernel.org, kvm@vger.kernel.org
Subject: Re: [PATCH 1/7] KVM test: Move test utilities to client/tools
Date: Fri, 11 Mar 2011 14:47:40 +0800 [thread overview]
Message-ID: <20110311064740.GA4456@t400> (raw)
In-Reply-To: <1299662470-3017-2-git-send-email-lmr@redhat.com>
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.
# 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)
> +"""
....
next prev parent reply other threads:[~2011-03-11 6:47 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 [this message]
2011-03-11 11:52 ` [Autotest] " Lucas Meneghel Rodrigues
2011-03-11 21:18 ` 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=20110311064740.GA4456@t400 \
--to=akong@redhat.com \
--cc=autotest@test.kernel.org \
--cc=kvm@vger.kernel.org \
--cc=lmr@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox