From patchwork Thu Jan 7 08:10:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sshang X-Patchwork-Id: 71559 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0788EDk030540 for ; Thu, 7 Jan 2010 08:08:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932416Ab0AGIIK (ORCPT ); Thu, 7 Jan 2010 03:08:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932384Ab0AGIIK (ORCPT ); Thu, 7 Jan 2010 03:08:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:24683 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932259Ab0AGIIG (ORCPT ); Thu, 7 Jan 2010 03:08:06 -0500 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.13.8/8.13.8) with ESMTP id o07885u3031441 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 7 Jan 2010 03:08:05 -0500 Received: from localhost.localdomain ([10.66.91.196]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o07882JO005720; Thu, 7 Jan 2010 03:08:03 -0500 From: sshang To: lmr@redhat.com Cc: autotest@test.kernel.org, kvm@vger.kernel.org, sshang Subject: [PATCH] Add the ability to use *.xml as unattended_install file for kvm. Date: Thu, 7 Jan 2010 16:10:42 +0800 Message-Id: <1262851842-3885-1-git-send-email-sshang@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 diff --git a/client/tests/kvm/scripts/unattended.py b/client/tests/kvm/scripts/unattended.py index 562d317..ee20b60 100755 --- a/client/tests/kvm/scripts/unattended.py +++ b/client/tests/kvm/scripts/unattended.py @@ -91,6 +91,8 @@ class UnattendedInstall(object): shutil.copyfile(setup_file_path, setup_file_dest) elif self.unattended_file.endswith('.ks'): dest_fname = 'ks.cfg' + elif self.unattended_file.endswith('.xml'): + dest_fname = "autounattend.xml" dest = os.path.join(self.floppy_mount, dest_fname) shutil.copyfile(self.unattended_file, dest)