Skip to content

Commit

Permalink
fixed command-line overrides (#397)
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Ferrell <51765748+Paul-Ferrell@users.noreply.github.com>
  • Loading branch information
francinelapid and Paul-Ferrell committed Apr 6, 2021
1 parent 07e9ebe commit 6d6e359
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/pavilion/plugins/commands/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ def run(self, pav_cfg, args):
series_obj = TestSeries(pav_cfg,
series_config=series_cfg,
outfile=self.outfile,
errfile=self.errfile)
errfile=self.errfile,
overrides=args.overrides)

series_obj.create_set_graph()
only_set = series_obj.test_sets['only_set']
Expand Down
4 changes: 3 additions & 1 deletion lib/pavilion/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def run_set(self, log=False, local_builds_only=False, build_only=False,
host=self.host,
tests=self._test_names,
modes=self.modes,
overrides=self.series_obj.overrides,
outfile=self.outfile,
conditions=new_conditions,
)
Expand Down Expand Up @@ -268,7 +269,7 @@ class TestSeries:
SERIES_COMPLETE_FN = 'SERIES_COMPLETE'

def __init__(self, pav_cfg, tests=None, _id=None, series_config=None,
dep_graph=None, outfile: TextIO = StringIO(),
dep_graph=None, overrides=None, outfile: TextIO = StringIO(),
errfile: TextIO = StringIO()):
"""Initialize the series.
Expand All @@ -293,6 +294,7 @@ def __init__(self, pav_cfg, tests=None, _id=None, series_config=None,
self.dep_graph = dep_graph
self.test_sets = {} # type: Dict[str, TestSet]
self.test_objs = {}
self.overrides = overrides

if tests:
self.tests = {test.id: test for test in tests}
Expand Down

0 comments on commit 6d6e359

Please sign in to comment.