Commit e7976887 authored by Julien Muchembled's avatar Julien Muchembled

rina: fix UnboundLocalError when the 'build-rina' test suite fails too early

parent 81e95395
...@@ -131,6 +131,7 @@ location = {{parameter_dict['slapos_package']}} ...@@ -131,6 +131,7 @@ location = {{parameter_dict['slapos_package']}}
# error: buildout traceback or test suite log # error: buildout traceback or test suite log
start = time() start = time()
try:
try: try:
p = subprocess.Popen(cmd, stderr=subprocess.PIPE) p = subprocess.Popen(cmd, stderr=subprocess.PIPE)
stderr = [] stderr = []
...@@ -141,6 +142,7 @@ location = {{parameter_dict['slapos_package']}} ...@@ -141,6 +142,7 @@ location = {{parameter_dict['slapos_package']}}
stderr_write(line) stderr_write(line)
stderr.append(line) stderr.append(line)
returncode = p.wait() returncode = p.wait()
finally:
end = time() end = time()
del p del p
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment