commit | a52689431ab80f4416a177c0334e9e61b63720ac | [log] [tgz] |
---|---|---|
author | Elena Ezhova <eezhova@mirantis.com> | Wed May 21 14:55:15 2014 +0400 |
committer | Elena Ezhova <eezhova@mirantis.com> | Tue May 27 17:42:17 2014 +0400 |
tree | 667fb4d52bb2ae83a5ebfc56d0cdcdc29aeafb8d | |
parent | aa7eb963cb523275984295b6a073c667c5606903 [diff] |
Fix sudo_cmd_call in tempest.common.commands The check that proc.returncode is non-zero was never executed because it was located after the return statement. Moreover, subprocess.CalledProcessError may only be raised by a process run by check_call() or check_output() but not by communicate(). Change-Id: I5fdcdcdda85552e5855241ada34054cfda8464d5