test/cmd/wget.c: Fix loadaddr rewrite
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 26 Jan 2025 23:57:03 +0000 (00:57 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 27 Jan 2025 18:46:44 +0000 (12:46 -0600)
commit082b41df8abd8b2d0f2dccce8ed74fe7f5c6509e
treefb4db2bb98d89f116c9635e9cd30d8352743ab30
parentd8a7100d658eb201fa0e955667fdff298db31945
test/cmd/wget.c: Fix loadaddr rewrite

The $loadaddr variable is a hexadecimal value, not a string, it must be
assigned using env_set_hex(). This may break follow up tests, like the
dm_test_cmd_hash_md5 in CI. To avoid any interference with other tests,
set $wgetaddr variable which is specific to this test and use it in the
test.

Fixes: 20f641987f83 ("test/cmd/wget.c: move net_test_wget() to the cmd test suite")
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
test/cmd/wget.c