diff options
author | Trevor Gamblin <tgamblin@baylibre.com> | 2023-09-21 09:14:27 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-22 07:43:51 +0100 |
commit | b7ff1e7363261780c015a3ee3b6d4bc69567f67f (patch) | |
tree | c30423a7fc39b055c5cd13f45a1911d126bd4fc8 /meta/lib/patchtest | |
parent | 9478a665641f55cdc14f12a4409121ef95883d74 (diff) | |
download | openembedded-core-contrib-b7ff1e7363261780c015a3ee3b6d4bc69567f67f.tar.gz |
patchtest/selftest: only split resultlines once
selftest assumes that the test result output lines will consist of two
tokens separated by whitespace, which are the actual result and the name
of the test run. As a result, the script fails if any verbosity is added
to the output of patchtest itself (e.g. by including a failure reason).
Make the call to split() only do so once in order to ensure that two
tokens are obtained.
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/patchtest')
-rwxr-xr-x | meta/lib/patchtest/selftest/selftest | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/patchtest/selftest/selftest b/meta/lib/patchtest/selftest/selftest index ba8e1623ee..d2b61e951a 100755 --- a/meta/lib/patchtest/selftest/selftest +++ b/meta/lib/patchtest/selftest/selftest @@ -63,7 +63,7 @@ if __name__ == '__main__': for resultline in results.splitlines(): if testid in resultline: - result, _ = resultline.split() + result, _ = resultline.split(' ', 1) if expected_result.upper() == "FAIL" and result.upper() == "FAIL": xfailcount = xfailcount + 1 |