All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Lukáš Doktor" <ldoktor@redhat.com>
To: KVM list <kvm@vger.kernel.org>
Subject: [KVM_AUTOTEST] set English environment
Date: Thu, 09 Jul 2009 12:50:51 +0200	[thread overview]
Message-ID: <4A55CB8B.4010907@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 192 bytes --]

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

[-- Attachment #2: language.patch --]
[-- Type: text/plain, Size: 418 bytes --]

--- 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)

             reply	other threads:[~2009-07-09 10:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-09 10:50 Lukáš Doktor [this message]
2009-07-20 13:16 ` [KVM_AUTOTEST] set English environment Lucas Meneghel Rodrigues
2009-07-21  0:09 ` Arnd Bergmann
2009-07-21  5:55   ` Lukáš Doktor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A55CB8B.4010907@redhat.com \
    --to=ldoktor@redhat.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.