[KVM_AUTOTEST] set English environment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Set English environment before test executions.
This is critical because we are parsing outputs of commands, which are localized!

Tested by: ldoktor@xxxxxxxxxx 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)

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux