]> code.ossystems Code Review - openembedded-core.git/commit
oescripts: ignore whitespaces when comparing lines
authorChen Qi <Qi.Chen@windriver.com>
Wed, 1 Jul 2020 05:50:10 +0000 (13:50 +0800)
committerSteve Sakoman <steve@sakoman.com>
Tue, 7 Jul 2020 00:33:20 +0000 (14:33 -1000)
commit80bdd59c8fa8b20a5a1fe7b5e3f1ddb95ad13af6
tree82791fbd9b74b3d94d5ab640ff5c3b585fdfcb4a
parent9793d9b885195a1a917b2209b2bc8070a3df733d
oescripts: ignore whitespaces when comparing lines

list-packageconfig-flags.py determines the whitespace numbers according
to the longest package name. This is reasonable for the tool as it's
trying to generate pretty output.

However, in this selftest case, the output is hardcoded. This results in
"pinentry                       gtk2 libcap ncurses qt secret" not recognized
as correct as the expected line is:
"pinentry                     gtk2 libcap ncurses qt secret".

The difference is only about whitespaces. So we should ignore the whitespaces
when comparing lines.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 17c89ad1596dbc7cefdd2c01dcd95aa9e93c5dc6)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oeqa/selftest/cases/oescripts.py