mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Fix bug in source file test.
When looking for a source file, it was assumed that the current working directory did not contain the character '.'. If the working directory did contain a '.', this test would fail.
This commit is contained in:
parent
74fb90a923
commit
692872297b
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ def test_run2():
|
|||
openmc_path = os.path.join(cwd, '../../src/openmc')
|
||||
source = glob.glob(os.path.join(cwd, 'source.10.*'))
|
||||
with open('settings.xml','w') as fh:
|
||||
fh.write(settings2.format(source[0].split('.')[2]))
|
||||
fh.write(settings2.format(source[0].split('.')[-1]))
|
||||
if opts.mpi_exec != '':
|
||||
proc = Popen([opts.mpi_exec, '-np', opts.mpi_np, opts.exe, cwd],
|
||||
stderr=STDOUT, stdout=PIPE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue