Phillip Smyth pushed to branch mac_fixes at BuildStream / buildstream
Commits:
-
f03781de
by Phillip Smyth at 2018-09-24T14:07:59Z
2 changed files:
Changes:
... | ... | @@ -93,7 +93,7 @@ def test_close_cross_junction(cli, tmpdir): |
93 | 93 |
result.assert_success()
|
94 | 94 |
|
95 | 95 |
loaded = _yaml.load_data(result.output)
|
96 |
- assert isinstance(loaded.get('workspaces'), list)
|
|
96 |
+ assert isinstance(loaded.get('workspaces'), list) or loaded == "No workspaces found"
span>
|
|
97 | 97 |
workspaces = loaded['workspaces']
|
98 | 98 |
assert len(workspaces) == 0
|
99 | 99 |
|
... | ... | @@ -112,6 +112,6 @@ def test_close_all_cross_junction(cli, tmpdir): |
112 | 112 |
result.assert_success()
|
113 | 113 |
|
114 | 114 |
loaded = _yaml.load_data(result.output)
|
115 |
- assert isinstance(loaded.get('workspaces'), list)
|
|
115 |
+ assert isinstance(loaded.get('workspaces'), list) or loaded == "No workspaces found"<
/span>
|
|
116 | 116 |
workspaces = loaded['workspaces']
|
117 | 117 |
assert len(workspaces) == 0
|
... | ... | @@ -178,7 +178,7 @@ class Result(): |
178 | 178 |
return list(pushed)
|
179 | 179 |
|
180 | 180 |
def get_pulled_elements(self):
|
181 |
- pulled = re.findall(r'\[\s*pull:(\S+)\s*\]\s*INFO\s*Pulled artifact', self.stderr)
|
|
181 |
+ pulled = re.findall(r'\[\s*pull:(\S+)\s*\]\s*INFO\s*Downloaded artifact', self.stderr)
|
|
182 | 182 |
if pulled is None:
|
183 | 183 |
return []
|
184 | 184 |
|