diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2019-01-22 11:05:26 -0500 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2019-01-24 00:01:55 -0500 |
commit | 68339b19f7ea630f003da5aa5fbb1b577a310092 (patch) | |
tree | d90c74d2be5e2b580546f481fe66b4e637926bf7 /tests/testutils | |
parent | 3a6e953fe5b51c76bb6ebb0881eaf181267112ed (diff) | |
download | buildstream-68339b19f7ea630f003da5aa5fbb1b577a310092.tar.gz |
tests/testutils/runcli.py: Make get_element_states() take a list of targets
Instead of a single target, we can always provide a single target
in a list.
Diffstat (limited to 'tests/testutils')
-rw-r--r-- | tests/testutils/runcli.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/testutils/runcli.py b/tests/testutils/runcli.py index 7cd81e0a6..b051dec21 100644 --- a/tests/testutils/runcli.py +++ b/tests/testutils/runcli.py @@ -398,13 +398,12 @@ class Cli(): # # Returns a dictionary with the element names as keys # - def get_element_states(self, project, target, deps='all'): + def get_element_states(self, project, targets, deps='all'): result = self.run(project=project, silent=True, args=[ 'show', '--deps', deps, '--format', '%{name}||%{state}', - target - ]) + ] + targets) result.assert_success() lines = result.output.splitlines() states = {} |