]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6c5a1935fed6963c90ff1f077e410f204d2abc25
tree4bf0110a914f79d9640836cbe8a13545da978ce9
parent9d332ba33e1b62710effee4e3ac5ed2990de7156
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