]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
runqemu: Fix TypeError when command fails
authorJoshua Watt <JPEWhacker@gmail.com>
Thu, 23 Mar 2023 15:37:59 +0000 (10:37 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 25 Mar 2023 09:39:26 +0000 (09:39 +0000)
commit3e5d04d9ebbee4e11fb39bf353b6d4c3133e166a
tree0a91aad03340c7d9c77afa0d3595268c3f03070c
parent701d985aa8f2e9c2b9c0736fa25b424f3701889e
runqemu: Fix TypeError when command fails

The commands passed to subprocess are tuples which when passed to a %
format are treated as multiple format arguments instead of a single
argument to be coerced by "%s". This results in a TypeError being
raised with python claiming that not all arguments were consumed.

Fix this by wrapping the command tuple in a str() call, as is done for
the logging strings

[YOCTO #15078]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
scripts/runqemu