diff options
author | Jürg Billeter <j@bitron.ch> | 2020-09-15 18:08:53 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2020-09-16 10:19:54 +0200 |
commit | 84c22359c49ecc0006794abb3b16065ac50eae28 (patch) | |
tree | 22c1960289a27a6013bc0ba668cd427b2ff5f649 /src | |
parent | b989a359cd4f367b5477d5db008b46c76b28c178 (diff) | |
download | buildstream-84c22359c49ecc0006794abb3b16065ac50eae28.tar.gz |
testing/runcli.py: Add get_built_elements() method
Diffstat (limited to 'src')
-rw-r--r-- | src/buildstream/testing/runcli.py | 7 |
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: |