From patchwork Tue Feb 23 02:39:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sshang X-Patchwork-Id: 81368 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1N2ZK06019660 for ; Tue, 23 Feb 2010 02:35:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752048Ab0BWCfK (ORCPT ); Mon, 22 Feb 2010 21:35:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:9901 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751372Ab0BWCfJ (ORCPT ); Mon, 22 Feb 2010 21:35:09 -0500 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o1N2Z7TW016307 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 22 Feb 2010 21:35:07 -0500 Received: from localhost.localdomain ([10.66.91.194]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o1N2Z4XP011647; Mon, 22 Feb 2010 21:35:05 -0500 From: sshang To: lmr@redhat.com Cc: autotest@test.kernel.com, kvm@vger.kernel.org, sshang Subject: [PATCH] KVM Test: Copy the keyval of guest test into client results Date: Tue, 23 Feb 2010 10:39:59 +0800 Message-Id: <1266892799-8325-1-git-send-email-sshang@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 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.3 (demeter.kernel.org [140.211.167.41]); Tue, 23 Feb 2010 02:35:20 +0000 (UTC) diff --git a/client/tests/kvm/tests/autotest.py b/client/tests/kvm/tests/autotest.py index f19a2ec..79aa6b1 100644 --- a/client/tests/kvm/tests/autotest.py +++ b/client/tests/kvm/tests/autotest.py @@ -1,4 +1,4 @@ -import os, logging +import os, logging, shutil from autotest_lib.client.common_lib import error from autotest_lib.client.bin import utils import kvm_subprocess, kvm_utils, kvm_test_utils, scan_results @@ -144,6 +144,12 @@ def run_autotest(test, params, env): if not vm.copy_files_from("%s/results/default/*" % autotest_path, guest_results_dir): logging.error("Could not copy results back from guest") + else: + perf_file_path = os.path.join(guest_results_dir,"%s/results/keyval" % test_name) + if os.path.exists(perf_file_path): + logging.info("Copying perf keyval to host results") + perf_file_dest = os.path.join(test.outputdir,"results/keyval") + shutil.copyfile(perf_file_path,perf_file_dest) # Report test results logging.info("Results (test, status, duration, info):")