From patchwork Fri Apr 29 03:49:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 740211 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3T3nnlE014873 for ; Fri, 29 Apr 2011 03:49:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752611Ab1D2Dtp (ORCPT ); Thu, 28 Apr 2011 23:49:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56137 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752406Ab1D2Dte (ORCPT ); Thu, 28 Apr 2011 23:49:34 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3T3nXpD028031 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 28 Apr 2011 23:49:33 -0400 Received: from freedom.redhat.com (vpn-9-184.rdu.redhat.com [10.11.9.184]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p3T3nRAi030385; Thu, 28 Apr 2011 23:49:32 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues Subject: [PATCH 2/4] job: Write a job HTML report for every autotest client job Date: Fri, 29 Apr 2011 00:49:24 -0300 Message-Id: <1304048966-5870-3-git-send-email-lmr@redhat.com> In-Reply-To: <1304048966-5870-1-git-send-email-lmr@redhat.com> References: <1304048966-5870-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 29 Apr 2011 03:49:53 +0000 (UTC) We have a tool that can generate such a file and it makes it easier for people who don't have access to the autotest web interface to analyze job results. With this, all client jobs write such a file, so test writers don't have to worry about it. This change does not regress the job unittests. Signed-off-by: Lucas Meneghel Rodrigues --- client/bin/job.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/client/bin/job.py b/client/bin/job.py index 9effcdb..a792309 100644 --- a/client/bin/job.py +++ b/client/bin/job.py @@ -17,6 +17,7 @@ from autotest_lib.client.common_lib import base_job from autotest_lib.client.common_lib import error, barrier, log, logging_manager from autotest_lib.client.common_lib import base_packages, packages from autotest_lib.client.common_lib import global_config +from autotest_lib.client.tools import html_report LAST_BOOT_TAG = object() @@ -950,6 +951,9 @@ class base_client_job(base_job.base_job): self._tap.write() self._tap._write_tap_archive() + # write out a job HTML report + html_report.create_report(self.resultdir) + # We are about to exit 'complete' so clean up the control file. dest = os.path.join(self.resultdir, os.path.basename(self._state_file)) shutil.move(self._state_file, dest)