Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Peng Lian
param_runner
Commits
0443d5d0
Commit
0443d5d0
authored
May 22, 2017
by
David Trudgian
Browse files
Fix test for specified work_dir
parent
5930b4b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/test_data/test_params.yaml
View file @
0443d5d0
...
...
@@ -36,9 +36,9 @@ cpus_per_task: 4
time_limit
:
3-00:00:00
# Environment Module to Load
#
modules:
#
- matlab/2013a
#
- python/2.7.x-anaconda
modules
:
-
matlab/2013a
-
python/2.7.x-anaconda
# The list of parameters to explore
#
...
...
test/test_executor.py
View file @
0443d5d0
...
...
@@ -33,6 +33,9 @@ class TestExecutors:
le
=
LocalExecutor
(
param_file
.
commands
,
test_dir
,
param_file
)
le
.
run
()
if
param_file
.
vals
[
'work_dir'
]:
test_dir
=
param_file
.
vals
[
'work_dir'
]
# There should be 170 error files (one per task)
err_files
=
glob
(
test_dir
+
'/param_runner*/*.err'
)
assert
len
(
err_files
)
==
170
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment