public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Lucas Meneghel Rodrigues <lmr@redhat.com>
To: sudhir kumar <smalikphy@gmail.com>
Cc: Autotest mailing list <autotest@test.kernel.org>,
	Lucas Meneghel Rodrigues <mrodrigu@redhat.com>,
	Uri Lublin <uril@redhat.com>, kvm-devel <kvm@vger.kernel.org>
Subject: Re: [Autotest] [AUTOTEST] [PATCH 2/2] View LTP execution results under kvm's results.html file
Date: Mon, 06 Jul 2009 04:15:31 -0300	[thread overview]
Message-ID: <1246864531.2865.56.camel@localhost.localdomain> (raw)
In-Reply-To: <a50cf5ab0907052243g77bc2a82wee3ffb0be3d037c@mail.gmail.com>

On Mon, 2009-07-06 at 11:13 +0530, sudhir kumar wrote:
> This patch creates a link to the results html file generated by the test
> under autotest. This is specific to the kvm part only. The assumption made is
> that the file name is <test_name>_results.html and it is located under
> <test_name>/results/ directory. This helps in quickly viewing the test results.
> 
> The attached tar file contains the full results directory. The results.html file
> points to ltp_results.html which looks quite fancy.
> 
> Please have a look at the results and the patch and provide your comments.
> 
> Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
> 
> Index: autotest/client/tests/kvm/kvm_tests.py
> ===================================================================
> --- autotest.orig/client/tests/kvm/kvm_tests.py
> +++ autotest/client/tests/kvm/kvm_tests.py
> @@ -391,6 +391,15 @@ def run_autotest(test, params, env):
>      if not vm.scp_from_remote("autotest/results/default/*", guest_results_dir):
>          logging.error("Could not copy results back from guest")
> 
> +    # Some tests create html file as a result, link it to be viewed under
> +    # the results statistics. We assume this file is located under
> +    # test_name/results/ directory and named as test_name_results.html,
> +    # e.g. ltp_result.html, vmmstress_results.html
> +    html_file = test_name + "_results.html"
> +    html_path = os.path.join(guest_results_dir, test_name, "results",
> html_file)
> +    if os.path.exists(html_path):
> +        os.symlink(html_path, os.path.join(test.debugdir, html_file))
> +
>      # Fail the test if necessary
>      if status_fail:
>          raise error.TestFail(message_fail)

Looks good to me


      reply	other threads:[~2009-07-06  7:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-06  5:43 [AUTOTEST] [PATCH 2/2] View LTP execution results under kvm's results.html file sudhir kumar
2009-07-06  7:15 ` Lucas Meneghel Rodrigues [this message]

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=1246864531.2865.56.camel@localhost.localdomain \
    --to=lmr@redhat.com \
    --cc=autotest@test.kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=mrodrigu@redhat.com \
    --cc=smalikphy@gmail.com \
    --cc=uril@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