Fixed removal of the Matlab unit test output file
This commit is contained in:
parent
04841e181c
commit
9dc9ddc1bc
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue