Skip to content

Commit 8cbf91d

Browse files
committed
tst: enable provenance for testing on circle
1 parent 8860758 commit 8cbf91d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/run_examples.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ def run_examples(example, pipelines, plugin):
88
print('running example: %s with plugin: %s' % (example, plugin))
99
from nipype import config
1010
config.enable_debug_mode()
11+
config.enable_provenance()
1112
from nipype.interfaces.base import CommandLine
1213
CommandLine.set_default_terminal_output("stream")
1314

@@ -17,7 +18,9 @@ def run_examples(example, pipelines, plugin):
1718
wf.base_dir = os.path.join(os.getcwd(), 'output', example, plugin)
1819
if os.path.exists(wf.base_dir):
1920
rmtree(wf.base_dir)
20-
wf.config = {'execution': {'hash_method': 'timestamp', 'stop_on_first_rerun': 'true'}}
21+
wf.config = {'execution': {'hash_method': 'timestamp',
22+
'stop_on_first_rerun': 'true',
23+
'write_provenance': 'true'}}
2124
wf.run(plugin=plugin, plugin_args={'n_procs': 4})
2225
# run twice to check if nothing is rerunning
2326
wf.run(plugin=plugin)

0 commit comments

Comments
 (0)