mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Copy executable rather than moving when running run_suite.
This commit is contained in:
parent
c54a3463d4
commit
0d1176ea03
1 changed files with 2 additions and 2 deletions
|
|
@ -6,6 +6,7 @@ import os
|
|||
import sys
|
||||
import nose
|
||||
import glob
|
||||
import shutil
|
||||
from subprocess import call
|
||||
|
||||
from nose_mpi import NoseMPI
|
||||
|
|
@ -46,9 +47,8 @@ def run_suite(name=None, mpi=False):
|
|||
|
||||
try:
|
||||
os.chdir(pwd)
|
||||
os.rename(pwd + '/../src/openmc-' + name, pwd + '/../src/openmc')
|
||||
shutil.copyfile(pwd + '/../src/openmc-' + name, pwd + '/../src/openmc')
|
||||
result = nose.run(argv=argv, addplugins=plugins)
|
||||
os.rename(pwd + '/../src/openmc', pwd + '/../src/openmc-' + name)
|
||||
except OSError:
|
||||
result = False
|
||||
print('No OpenMC executable found for ' + name + ' tests')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue