From patchwork Thu Jul 9 10:50:51 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?THVrw6HFoSBEb2t0b3I=?= X-Patchwork-Id: 34794 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 n69AovsU016723 for ; Thu, 9 Jul 2009 10:50:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759187AbZGIKuz (ORCPT ); Thu, 9 Jul 2009 06:50:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759979AbZGIKuz (ORCPT ); Thu, 9 Jul 2009 06:50:55 -0400 Received: from mx2.redhat.com ([66.187.237.31]:35328 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759750AbZGIKuy (ORCPT ); Thu, 9 Jul 2009 06:50:54 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n69Aor7U008860 for ; Thu, 9 Jul 2009 06:50:53 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n69AorTD030337 for ; Thu, 9 Jul 2009 06:50:53 -0400 Received: from [10.34.33.254] (dhcp-lab-254.englab.brq.redhat.com [10.34.33.254]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n69AoqRL020070 for ; Thu, 9 Jul 2009 06:50:52 -0400 Message-ID: <4A55CB8B.4010907@redhat.com> Date: Thu, 09 Jul 2009 12:50:51 +0200 From: =?ISO-8859-2?Q?Luk=E1=B9_Doktor?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 MIME-Version: 1.0 To: KVM list Subject: [KVM_AUTOTEST] set English environment X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Set English environment before test executions. This is critical because we are parsing outputs of commands, which are localized! Tested by: ldoktor@redhat.com on RHEL5.4 with kvm-83-72.el5 --- orig/client/tests/kvm/control 2009-07-08 13:18:07.000000000 +0200 +++ new/client/tests/kvm/control 2009-07-09 12:32:32.000000000 +0200 @@ -45,6 +45,8 @@ Each test is appropriately documented on import sys, os +# set English environment +os.environ['LANG'] = 'en_US.UTF-8' # enable modules import from current directory (tests/kvm) pwd = os.path.join(os.environ['AUTODIR'],'tests/kvm') sys.path.append(pwd)