kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [KVM_AUTOTEST] set English environment
@ 2009-07-09 10:50 Lukáš Doktor
  2009-07-20 13:16 ` Lucas Meneghel Rodrigues
  2009-07-21  0:09 ` Arnd Bergmann
  0 siblings, 2 replies; 4+ messages in thread
From: Lukáš Doktor @ 2009-07-09 10:50 UTC (permalink / raw)
  To: KVM list

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-21  5:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-09 10:50 [KVM_AUTOTEST] set English environment Lukáš Doktor
2009-07-20 13:16 ` Lucas Meneghel Rodrigues
2009-07-21  0:09 ` Arnd Bergmann
2009-07-21  5:55   ` Lukáš Doktor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).