Run a command using errRun and raise exception on nonzero exit
( *cmd, **kwargs )
| 202 | # pylint: enable=too-many-branches |
| 203 | |
| 204 | def errFail( *cmd, **kwargs ): |
| 205 | "Run a command using errRun and raise exception on nonzero exit" |
| 206 | out, err, ret = errRun( *cmd, **kwargs ) |
| 207 | if ret: |
| 208 | raise Exception( "errFail: %s failed with return code %s: %s" |
| 209 | % ( cmd, ret, err ) ) |
| 210 | return CmdResult( out, err, ret ) |
| 211 | |
| 212 | def quietRun( cmd, **kwargs ): |
| 213 | "Run a command and return merged stdout and stderr" |
no test coverage detected