]> git.dujemihanovic.xyz Git - u-boot.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)
commit6910dbe3413e684bff9a194945df60345ecbc623
tree86204244c902ae70775c787d23427da8961f77d1
parent754a722d1b9572aad7900ad2a8e58f2f8a7cd2cc
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