From patchwork Fri Apr 16 08:01:38 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sshang X-Patchwork-Id: 93072 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 o3G80MXu014646 for ; Fri, 16 Apr 2010 08:01:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757280Ab0DPIA3 (ORCPT ); Fri, 16 Apr 2010 04:00:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23909 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757254Ab0DPIA2 (ORCPT ); Fri, 16 Apr 2010 04:00:28 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3G80R2b029390 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 16 Apr 2010 04:00:27 -0400 Received: from localhost.localdomain ([10.66.91.194]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3G80OS3023220; Fri, 16 Apr 2010 04:00:25 -0400 From: sshang To: lmr@redhat.com Cc: autotest@test.kernel.com, kvm@vger.kernel.org, sshang Subject: [PATCH] KVM-Test: Add passthrough the keyval of the test into server Date: Fri, 16 Apr 2010 16:01:38 +0800 Message-Id: <1271404898-31424-1-git-send-email-sshang@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 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]); Fri, 16 Apr 2010 08:01:51 +0000 (UTC) diff --git a/client/tests/kvm/kvm_test_utils.py b/client/tests/kvm/kvm_test_utils.py index 699601e..eef5bec 100644 --- a/client/tests/kvm/kvm_test_utils.py +++ b/client/tests/kvm/kvm_test_utils.py @@ -316,6 +316,13 @@ def run_autotest(vm, session, control_path, timeout, outputdir): if not vm.copy_files_from("%s/results/default/*" % autotest_path, guest_results_dir): logging.error("Could not copy autotest results 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) def get_results_summary():