Merge "Don't run probe tests if resetswift failed"
This commit is contained in:
commit
72c3163be8
@ -266,6 +266,11 @@ def get_policy(**kwargs):
|
|||||||
def resetswift():
|
def resetswift():
|
||||||
p = Popen("resetswift 2>&1", shell=True, stdout=PIPE)
|
p = Popen("resetswift 2>&1", shell=True, stdout=PIPE)
|
||||||
stdout, _stderr = p.communicate()
|
stdout, _stderr = p.communicate()
|
||||||
|
if p.returncode:
|
||||||
|
raise AssertionError(
|
||||||
|
'Cleanup with "resetswift" failed: stdout: %s, stderr: %s'
|
||||||
|
% (stdout, _stderr))
|
||||||
|
|
||||||
print(stdout)
|
print(stdout)
|
||||||
Manager(['all']).stop()
|
Manager(['all']).stop()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user