From patchwork Mon Jul 13 06:10:10 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sudhir kumar X-Patchwork-Id: 35324 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 n6D6AE7F029585 for ; Mon, 13 Jul 2009 06:10:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753060AbZGMGKM (ORCPT ); Mon, 13 Jul 2009 02:10:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753057AbZGMGKM (ORCPT ); Mon, 13 Jul 2009 02:10:12 -0400 Received: from wf-out-1314.google.com ([209.85.200.172]:28235 "EHLO wf-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752227AbZGMGKL (ORCPT ); Mon, 13 Jul 2009 02:10:11 -0400 Received: by wf-out-1314.google.com with SMTP id 26so695789wfd.4 for ; Sun, 12 Jul 2009 23:10:11 -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=zzka7oD0U8xcWzcvWde2BRTFtA4CvUZz++Ig2DrkyLc=; b=jWMAJwrVQRgLFo8W0uYMY9HnActyYRHnHf3ti/Sgtlpt1At1+nLqWTY4d19EZDYjDW MKqLROQewvpXuIIXliIsDifDDfJgo1tia5TH67COPUeza73RJ6xvIhNPrZhM1oO0cKYT ArRgKvuvGrps4c+o1VjA6CPbDj1T75EsLEv2Q= 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=LGN2wfenv2F+PkejUzYxiYmBn16dfMFX9K6HP6LUO8cq8nk9HigsRXt6vqIwLDV7Po qnMbAHASWaeOQOW/AiAGOL+4aIopupT6IGBWGbraI5zC+RF5Vd442iyxZkZkV4oDdE3d Mg7wsNMP+ubGkraLdSF+shgX+8MX0mtdWNL5U= MIME-Version: 1.0 Received: by 10.142.191.10 with SMTP id o10mr1281723wff.184.1247465411008; Sun, 12 Jul 2009 23:10:11 -0700 (PDT) Date: Mon, 13 Jul 2009 11:40:10 +0530 Message-ID: Subject: [AUTOTEST] [PATCH 5/5] view ltp_results.html under kvm guests' results.html From: sudhir kumar To: Autotest mailing list Cc: kvm-devel , Lucas Meneghel Rodrigues , Martin Bligh , 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: