]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
target/ssh: Ensure exit code set for commands
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 28 Jul 2023 10:16:08 +0000 (11:16 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 29 Jul 2023 07:25:07 +0000 (08:25 +0100)
commit3924e94214b5135369be2551d54fb92097d35e95
tree01c8217ac56fa4e4eacbdafa55602f6d58a950ce
parent8691020f33a644d52b7d867376ef3c85be84abf9
target/ssh: Ensure exit code set for commands

As spotted by Joshua Watt, the returncode isn't set until .poll() or .wait()
is called so we need to call this after the .kill() call.

This fixes return code reporting so that timeouts for example now return an
exit code when they didn't before.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/target/ssh.py