mirror of
https://github.com/Cantera/cantera.git
synced 2026-08-09 12:38:22 -05:00
Fixed removal of the Matlab unit test output file
This commit is contained in:
+2
-1
@@ -79,7 +79,8 @@ def addMatlabTest(script, dependencies=None):
|
||||
matlabOptions = ['-nojvm','-nosplash','-wait']
|
||||
else:
|
||||
matlabOptions = ['-nojvm','-nodisplay']
|
||||
os.remove(outfile)
|
||||
if os.path.exists(outfile):
|
||||
os.remove(outfile)
|
||||
code = subprocess.call([pjoin(env['matlab_path'], 'bin', 'matlab')] +
|
||||
matlabOptions + ['-r', runCommand],
|
||||
env=env['ENV'], cwd=Dir('#test/matlab').abspath)
|
||||
|
||||
Reference in New Issue
Block a user