From patchwork Mon Jul 6 05:43:45 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sudhir kumar X-Patchwork-Id: 34188 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n665hn4c005245 for ; Mon, 6 Jul 2009 05:43:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752222AbZGFFnn (ORCPT ); Mon, 6 Jul 2009 01:43:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752495AbZGFFnn (ORCPT ); Mon, 6 Jul 2009 01:43:43 -0400 Received: from mail-px0-f190.google.com ([209.85.216.190]:50299 "EHLO mail-px0-f190.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751528AbZGFFnm (ORCPT ); Mon, 6 Jul 2009 01:43:42 -0400 Received: by pxi28 with SMTP id 28so3318566pxi.33 for ; Sun, 05 Jul 2009 22:43:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=m/liKp3Dg96l7jJ4Vrp2znfo15kMzwk5uF5ZUTzJO8o=; b=BeAdF58c/hIefaBR+10LsxMJ9kzHG4ZJFoZwRnOqkaTjsGlr0QXgULUsTY6Hb5XTdK 1t9slInhO3+8frK90kAFzSFTTWcjXkxwqmkimjh4izRjxPn+B6dSajdgokmzgo5b6HBx oyIYIIErrbWNmcnMh8BqWj24bFgX/mF7ZeYyA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=QUI4bl8d4O9bg0vWKG4HdGP0imevWzuE1fheLacB97GiadYNg6vG2C+QZESqaq9G4E NNoEngBBP93bELhpNljp4Hogrj0mQFsa9CzeJnPMRHvNwvv9LjXF1p93ngEUiBqngyjQ aNYb6yxzshC/UolFs0GBYWbgBM5t92BLC/9J0= MIME-Version: 1.0 Received: by 10.142.84.5 with SMTP id h5mr1300570wfb.31.1246859025813; Sun, 05 Jul 2009 22:43:45 -0700 (PDT) Date: Mon, 6 Jul 2009 11:13:45 +0530 Message-ID: Subject: [AUTOTEST] [PATCH 2/2] View LTP execution results under kvm's results.html file From: sudhir kumar To: Autotest mailing list Cc: kvm-devel , Lucas Meneghel Rodrigues , Uri Lublin , smalikphy@gmail.com Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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 _results.html and it is located under /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 raise error.TestFail(message_fail) 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: