summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2020-09-15 18:08:53 +0200
committerJürg Billeter <j@bitron.ch>2020-09-16 10:19:54 +0200
commit84c22359c49ecc0006794abb3b16065ac50eae28 (patch)
tree22c1960289a27a6013bc0ba668cd427b2ff5f649 /src
parentb989a359cd4f367b5477d5db008b46c76b28c178 (diff)
downloadbuildstream-84c22359c49ecc0006794abb3b16065ac50eae28.tar.gz
testing/runcli.py: Add get_built_elements() method
Diffstat (limited to 'src')
-rw-r--r--src/buildstream/testing/runcli.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/buildstream/testing/runcli.py b/src/buildstream/testing/runcli.py
index de4327cd8..7a69191ed 100644
--- a/src/buildstream/testing/runcli.py
+++ b/src/buildstream/testing/runcli.py
@@ -218,6 +218,13 @@ class Result:
return list(tracked)
+ def get_built_elements(self):
+ built = re.findall(r"\[\s*build:(\S+)\s*\]\s*SUCCESS\s*Caching artifact", self.stderr)
+ if built is None:
+ return []
+
+ return list(built)
+
def get_pushed_elements(self):
pushed = re.findall(r"\[\s*push:(\S+)\s*\]\s*INFO\s*Pushed artifact", self.stderr)
if pushed is None: