[Pydev-cvs] org.python.pydev/tests/org/python/pydev/pythontests PythonTest.java, 1.1, 1.2
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-05-21 01:38:03
|
Update of /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/pythontests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4510/tests/org/python/pydev/pythontests Modified Files: PythonTest.java Log Message: - No longer using Runtime.exec(String), only Runtime.exec(String[]) - Updating the markers in a better (faster) way Index: PythonTest.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/pythontests/PythonTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PythonTest.java 27 May 2007 13:27:03 -0000 1.1 --- PythonTest.java 21 May 2008 01:38:09 -0000 1.2 *************** *** 56,61 **** private static Throwable exec(File f) { ! String cmdLine = SimplePythonRunner.getCommandLineAsString(new String[]{TestDependent.PYTHON_EXE, "-u", REF.getFileAbsolutePath(f)}); ! Tuple<String, String> output = new SimplePythonRunner().runAndGetOutput(cmdLine, f.getParentFile()); if(output.o2.indexOf("FAILED") != -1){ throw new AssertionError(output.toString()); --- 56,61 ---- private static Throwable exec(File f) { ! Tuple<String, String> output = new SimplePythonRunner().runAndGetOutput(new String[] { ! TestDependent.PYTHON_EXE, "-u", REF.getFileAbsolutePath(f) }, f.getParentFile(), null, null); if(output.o2.indexOf("FAILED") != -1){ throw new AssertionError(output.toString()); |