MCPcopy Create free account
hub / github.com/mininet/mininet / errFail

Function errFail

mininet/util.py:204–210  ·  view source on GitHub ↗

Run a command using errRun and raise exception on nonzero exit

( *cmd, **kwargs )

Source from the content-addressed store, hash-verified

202# pylint: enable=too-many-branches
203
204def 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
212def quietRun( cmd, **kwargs ):
213 "Run a command and return merged stdout and stderr"

Callers 4

initCgroupsMethod · 0.90
cgroupSetMethod · 0.90
setCPUsMethod · 0.90
mountCgroupsFunction · 0.85

Calls 1

errRunFunction · 0.85

Tested by

no test coverage detected