[Erp5-report] r15215 - /erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py

nobody at svn.erp5.org nobody at svn.erp5.org
Sat Jul 14 06:57:32 CEST 2007


Author: kazuhiko
Date: Sat Jul 14 06:57:31 2007
New Revision: 15215

URL: http://svn.erp5.org?rev=15215&view=rev
Log:
now it will work without DISPLAY environment variable.

Modified:
    erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py

Modified: erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py?rev=15215&r1=15214&r2=15215&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py (original)
+++ erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py Sat Jul 14 06:57:31 2007
@@ -54,7 +54,7 @@
 
 def runXvfb():
   pid = os.spawnlp(os.P_NOWAIT, 'Xvfb', 'Xvfb', ':123')
-  display = os.environ['DISPLAY']
+  display = os.environ.get('DISPLAY')
   if display:
     auth = Popen(['xauth', 'list', display], stdout=PIPE).communicate()[0]
     if auth:




More information about the Erp5-report mailing list