Commit d3b24582 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

TEST: Change entrypoint

parent 37cab7d1
......@@ -37,7 +37,7 @@ def test_demo():
if op.exists('/.dockerenv'): args = ['--allow-root', '--ip=0.0.0.0']
else: args = None
with mock.patch('sys.argv', ['funpack_demo']):
with mock.patch('sys.argv', ['fmrib_unpack_demo']):
ukbdemo.main(args)
nbproc = mp.Process(target=nbfunc)
......@@ -153,8 +153,9 @@ def gen_demo_tests(outdir=None, rundir=None):
f.write('export PYTHONPATH="{}"\n'.format(
op.join(op.dirname(__file__), '..', '..')))
for line in source:
if line.startswith('funpack'):
line = line.replace('funpack', 'funpack -q -ow')
# The demo uses an alias funpack='fmrib_unpack -q -ow'
if line.startswith('funpack '):
line = line.replace('funpack ', 'fmrib_unpack -q -ow ')
line = '{} -m '.format(sys.executable) + line
f.write(line)
with open(op.join(outdir, out_file), 'wt') as f:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment