Commit 0443d5d0 authored by David Trudgian's avatar David Trudgian
Browse files

Fix test for specified work_dir

parent 5930b4b2
...@@ -36,9 +36,9 @@ cpus_per_task: 4 ...@@ -36,9 +36,9 @@ cpus_per_task: 4
time_limit: 3-00:00:00 time_limit: 3-00:00:00
# Environment Module to Load # Environment Module to Load
#modules: modules:
# - matlab/2013a - matlab/2013a
# - python/2.7.x-anaconda - python/2.7.x-anaconda
# The list of parameters to explore # The list of parameters to explore
# #
......
...@@ -33,6 +33,9 @@ class TestExecutors: ...@@ -33,6 +33,9 @@ class TestExecutors:
le = LocalExecutor(param_file.commands, test_dir, param_file) le = LocalExecutor(param_file.commands, test_dir, param_file)
le.run() le.run()
if param_file.vals['work_dir']:
test_dir = param_file.vals['work_dir']
# There should be 170 error files (one per task) # There should be 170 error files (one per task)
err_files = glob(test_dir + '/param_runner*/*.err') err_files = glob(test_dir + '/param_runner*/*.err')
assert len(err_files) == 170 assert len(err_files) == 170
......
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