]> git.baikalelectronics.ru Git - uboot.git/commit
env: Allow text-env tests to run with awk
authorSimon Glass <sjg@chromium.org>
Sun, 13 Mar 2022 05:47:49 +0000 (22:47 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 7 Apr 2022 20:50:53 +0000 (16:50 -0400)
commitb0b27131f5a2ca1890ea0f0415600e3207375fc7
tree86204244c902ae70775c787d23427da8961f77d1
parentd5df473b9b95bf1cb1f4eebf03ba374d6b352c7b
env: Allow text-env tests to run with awk

At present the tests assume that gawk is being used. Adjust the tests so
that the names are inserted in alphabetical order, so that awk is happy.

Also use PROCINFO to make gawk output in alphabetical order. This is not
ideal, since it changes the env-car ordering from what the user provided,
but it may be acceptable.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Fixes: https://source.denx.de/u-boot/u-boot/-/issues/10
scripts/env2string.awk
test/py/tests/test_env.py