tc-testing: tdc.py: Guard against lack of returncode in executed command
authorBrenda J. Butler <bjb@mojatatu.com>
Fri, 16 Nov 2018 22:37:56 +0000 (17:37 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Nov 2018 05:54:53 +0000 (21:54 -0800)
commitc6cecf4ae44e4ce9158ef8806358142c3512cd33
tree4bf0110a914f79d9640836cbe8a13545da978ce9
parent5aaf6428526bcad98d6f51f2f679c919bb75d7e9
tc-testing: tdc.py: Guard against lack of returncode in executed command

Add some defensive coding in case one of the subprocesses created by tdc
returns nothing. If no object is returned from exec_cmd, then tdc will
halt with an unhandled exception.

Signed-off-by: Brenda J. Butler <bjb@mojatatu.com>
Signed-off-by: Lucas Bates <lucasb@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/tdc.py