[POS-commit] r3364 - kiwi/trunk/tests

Johan Dahlin jdahlin at async.com.br
Fri Apr 28 13:09:04 BRT 2006


Author: jdahlin
Date: Fri Apr 28 13:09:04 2006
New Revision: 3364

Modified:
   kiwi/trunk/tests/test_ui.py

Log:
Use sys.executable to execute a script instead of just running it

Modified: kiwi/trunk/tests/test_ui.py
==============================================================================
--- kiwi/trunk/tests/test_ui.py	(original)
+++ kiwi/trunk/tests/test_ui.py	Fri Apr 28 13:09:04 2006
@@ -12,8 +12,9 @@
     os.chdir(self._dir)
 
 def test_filename(rootdir, filename):
-    cmd = '%s %s' % (os.path.join(rootdir, 'bin', 'kiwi-ui-test'),
-                     os.path.join('tests', 'ui', filename))
+    cmd = '%s %s %s' % (sys.executable,
+                        os.path.join(rootdir, 'bin', 'kiwi-ui-test'),
+                        os.path.join('tests', 'ui', filename))
     if sys.platform == 'win32':
         status = os.system(cmd)
     else:


More information about the POS-commit mailing list