Skip to content

Commit

Permalink
ci(z01/z02): minor change to look for examples with .git extension (#136
Browse files Browse the repository at this point in the history
)
  • Loading branch information
langevin-usgs authored Apr 8, 2019
1 parent d4be6be commit ff16330
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions autotest/test_z01_nightly_build_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,19 @@

from simulation import Simulation

# find path to modflow6-examples directory
# find path to modflow6-examples or modflow6-examples.git directory
home = os.path.expanduser('~')
fdir = 'modflow6-examples'
exdir = None
for root, dirs, files in os.walk(home):
for d in dirs:
if d == fdir:
if d.startswith(fdir):
exdir = os.path.join(root, d, 'mf6')
break
if exdir is not None:
break
testpaths = os.path.join('..', exdir)
assert os.path.isdir(testpaths)


def get_branch():
Expand Down
7 changes: 4 additions & 3 deletions autotest/test_z02_nightly_build_mf5to6.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,19 @@

from targets import target_dict as target_dict

# find path to modflow6-examples directory
# find path to modflow6-examples or modflow6-examples.git directory
home = os.path.expanduser('~')
fdir = 'modflow6-examples'
exdir = None
for root, dirs, files in os.walk(home):
for d in dirs:
if d == fdir:
exdir = os.path.join(root, d, 'mf5to6')
if d.startswith(fdir):
exdir = os.path.join(root, d, 'mf6')
break
if exdir is not None:
break
testpaths = os.path.join('..', exdir)
assert os.path.isdir(testpaths)

sfmt = '{:25s} - {}'

Expand Down

0 comments on commit ff16330

Please sign in to comment.