summaryrefslogtreecommitdiff
path: root/tests/testutils
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2019-01-22 11:05:26 -0500
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2019-01-24 00:01:55 -0500
commit68339b19f7ea630f003da5aa5fbb1b577a310092 (patch)
treed90c74d2be5e2b580546f481fe66b4e637926bf7 /tests/testutils
parent3a6e953fe5b51c76bb6ebb0881eaf181267112ed (diff)
downloadbuildstream-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.py5
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 = {}