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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Dec 2018 08:16:13 +0000 (09:16 +0100)
commit4ef9e48c9c8f9e4b684d188d7d6c5f18069c86bb
tree66226e3d2662f9fd60aca3941b4b0dbed812c79d
parent9806e7473d10988677c3404301dbbc00cb6d8858
tc-testing: tdc.py: Guard against lack of returncode in executed command

[ Upstream commit c6cecf4ae44e4ce9158ef8806358142c3512cd33 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/tc-testing/tdc.py