Fixed removal of the Matlab unit test output file

This commit is contained in:
Ray Speth
2012-03-15 22:48:59 +00:00
parent 04841e181c
commit 9dc9ddc1bc
+2 -1
View File
@@ -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)