mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
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
This commit is contained in:
@@ -81,7 +81,10 @@ END {
|
||||
if (do_output) {
|
||||
printf("%s", "#define CONFIG_EXTRA_ENV_TEXT \"")
|
||||
|
||||
# Print out all the variables
|
||||
# Print out all the variables by alphabetic order, if using
|
||||
# gawk. This allows test_env_test.py to work on both awk (where
|
||||
# this next line does nothing)
|
||||
PROCINFO["sorted_in"] = "@ind_str_asc"
|
||||
for (var in vars) {
|
||||
env = vars[var]
|
||||
print var "=" vars[var] "\\0"
|
||||
|
Reference in New Issue
Block a user