[Erp5-report] r33194 luke - /erp5/trunk/buildout/tests/assertSoftware.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Mar 1 17:12:38 CET 2010
Author: luke
Date: Mon Mar 1 17:12:38 2010
New Revision: 33194
URL: http://svn.erp5.org?rev=33194&view=rev
Log:
- assure that python script was really run and produced good result
Modified:
erp5/trunk/buildout/tests/assertSoftware.py
Modified: erp5/trunk/buildout/tests/assertSoftware.py
URL: http://svn.erp5.org/erp5/trunk/buildout/tests/assertSoftware.py?rev=33194&r1=33193&r2=33194&view=diff
==============================================================================
--- erp5/trunk/buildout/tests/assertSoftware.py [utf8] (original)
+++ erp5/trunk/buildout/tests/assertSoftware.py [utf8] Mon Mar 1 17:12:38 2010
@@ -20,7 +20,9 @@
f.close()
f_stat = os.stat(name)
os.chmod(name, f_stat.st_mode | stat.S_IXUSR)
- self.assertEqual(0, subprocess.call([name]))
+ result = ''.join(subprocess.Popen([name], stdout=subprocess.PIPE)\
+ .stdout.readlines()).strip()
+ self.assertEqual('(2, 4)', result)
finally:
os.unlink(name)
More information about the Erp5-report
mailing list