Tom Rini
9a13d08732
Merge patch series "test: Quote variables in 'test -n' expressions across boards"
...
Simon Glass <sjg@chromium.org > says:
Several boards use 'test -n ${var}' (unquoted) in env scripts to detect
an empty variable and trigger a fallback or skip a hook. That works only
because of a U-Boot 'test' quirk where calls with argc < 3 returned
false; an empty variable made the expression 'test -n' (one operand) and
hit that path.
Commit 8b0619579b ("cmd: test: fix handling of single-argument form of
test") aligned 'test' with POSIX so those expressions flipped to true.
f7e7c55e53 ("cmd: test: add bug-compatibility special case for 'test
-n'") restored the old behaviour for the exact 'test -n' (one arg) case,
so the boards are not broken at runtime today, but the reliance on a
bug-compat path isn't great.
This series updates various boards to quote each affected variable so
the emptiness check is explicit and does not depend on the
special-case path.
Each commit carries a Fixes: tag pointing at 8b0619579b
Link: https://lore.kernel.org/r/20260503204936.3151124-1-sjg@chromium.org
2026-05-14 15:39:22 -06:00
..
2025-11-06 08:30:33 -06:00
2026-04-21 11:19:49 -06:00
2026-05-14 15:39:22 -06:00
2026-04-21 11:21:59 -06:00
2026-04-20 11:43:11 -06:00
2026-05-14 15:39:09 -06:00
2025-08-15 14:17:30 -06:00
2026-02-28 15:31:49 -03:00
2026-05-12 15:41:52 -06:00
2026-01-06 14:44:21 -06:00
2025-08-18 15:47:57 +02:00
2026-05-06 10:20:29 +08:00
2025-12-05 16:24:56 -06:00
2026-01-14 16:25:09 +01:00
2026-04-27 12:38:44 +02:00
2025-11-21 19:25:56 +01:00
2025-12-04 09:38:58 -06:00
2026-03-03 09:09:43 +01:00
2025-09-26 11:55:13 -06:00
2025-05-30 09:49:31 +01:00
2025-08-25 16:20:48 +02:00
2025-06-02 17:26:15 -06:00
2025-09-24 11:03:16 -06:00
2025-06-02 17:26:15 -06:00
2026-01-25 23:29:32 +00:00
2026-01-02 15:51:54 -06:00
2025-06-02 17:26:15 -06:00
2025-07-23 17:37:14 -06:00
2026-04-27 09:42:36 -06:00
2026-02-18 16:35:07 -06:00
2025-10-22 14:16:56 -06:00
2026-03-18 13:17:34 -06:00
2025-10-22 14:16:56 -06:00
2026-03-18 13:17:34 -06:00
2025-06-02 17:26:15 -06:00
2025-06-02 17:26:15 -06:00
2025-06-02 17:26:15 -06:00
2025-05-30 09:49:32 +01:00
2025-06-05 16:57:35 -06:00
2025-10-28 12:12:20 -06:00
2025-10-03 16:55:44 -06:00
2025-05-29 08:29:16 -06:00
2025-06-02 17:26:15 -06:00
2026-04-13 17:34:48 -06:00
2026-04-22 14:23:49 -06:00
2026-04-08 19:35:05 +02:00
2025-06-06 17:12:20 +08:00
2025-06-02 17:26:15 -06:00
2025-12-30 11:22:57 -06:00
2025-06-02 17:26:15 -06:00
2025-08-06 08:41:30 +02:00
2025-11-07 09:28:28 +08:00
2025-11-06 23:26:28 +01:00
2026-05-05 16:29:08 +02:00
2026-03-14 08:14:20 +01:00
2025-11-21 19:30:32 +01:00
2025-06-02 17:26:15 -06:00
2026-03-14 08:14:20 +01:00
2025-11-06 23:26:28 +01:00
2026-04-27 11:26:40 -06:00
2026-02-04 09:04:36 +01:00
2026-04-27 11:26:40 -06:00
2025-06-20 12:15:08 -06:00
2026-04-21 20:49:39 -03:00
2026-04-17 08:02:42 +02:00
2026-03-14 08:36:53 +01:00
2025-05-30 09:49:32 +01:00
2025-09-26 11:55:13 -06:00
2025-11-07 15:34:04 -06:00
2025-11-03 10:02:39 -06:00
2026-03-27 13:14:18 -06:00
2025-11-24 10:51:16 +01:00
2025-07-22 11:30:14 -06:00
2025-07-09 08:40:03 -06:00
2026-04-21 11:21:59 -06:00
2025-08-25 16:20:48 +02:00
2025-10-09 13:50:40 -06:00
2025-06-14 09:09:40 -06:00
2025-06-14 09:09:40 -06:00
2025-06-27 11:48:20 -06:00
2025-10-09 13:50:40 -06:00
2026-02-11 12:17:18 +02:00
2026-02-04 09:01:30 +01:00
2026-02-02 14:24:40 -06:00
2026-02-02 14:24:40 -06:00
2026-02-02 14:24:40 -06:00
2026-02-06 09:29:48 -06:00
2025-12-27 09:40:35 -06:00
2025-08-06 08:41:30 +02:00
2025-06-02 17:26:16 -06:00
2025-12-19 10:30:26 -06:00
2025-07-17 09:56:33 -03:00
2025-07-17 09:56:33 -03:00
2026-04-21 20:49:39 -03:00
2025-06-13 13:10:33 -06:00
2025-11-20 09:17:58 +01:00
2025-11-20 09:17:58 +01:00
2025-12-29 10:17:01 -03:00
2025-07-24 11:50:21 -06:00
2025-07-14 12:43:28 -06:00
2026-04-14 11:04:04 -06:00
2026-05-05 16:29:08 +02:00
2025-06-26 11:57:59 -06:00
2025-09-26 11:55:13 -06:00
2025-06-14 09:09:40 -06:00
2025-06-05 16:57:35 -06:00
2025-12-05 10:34:52 -06:00
2026-03-23 11:27:52 +08:00
2025-08-14 15:33:00 +08:00
2025-07-08 13:11:12 -06:00
2025-05-29 08:30:25 -06:00
2026-04-27 11:26:40 -06:00
2026-04-27 11:26:40 -06:00
2026-01-15 11:09:28 +01:00
2026-01-16 09:07:28 -06:00
2026-02-15 08:43:58 +01:00
2026-02-15 08:43:58 +01:00
2026-03-26 11:04:41 -06:00
2025-10-22 14:28:33 +02:00
2026-04-07 15:27:22 -06:00
2025-10-28 12:24:03 -06:00
2026-02-02 14:24:40 -06:00
2026-04-21 11:19:49 -06:00
2026-02-17 13:50:22 -06:00
2025-11-04 12:45:30 -03:00
2025-07-08 13:11:12 -06:00
2026-03-23 10:58:20 +08:00
2025-10-24 13:47:50 -06:00
2026-03-23 10:58:20 +08:00
2026-04-08 11:07:07 -06:00
2025-12-11 20:53:51 +08:00
2025-05-29 08:25:18 -06:00
2026-02-18 08:27:51 -06:00
2026-02-18 08:27:51 -06:00
2025-10-05 20:26:22 +02:00
2026-04-30 08:01:11 +02:00
2025-07-08 13:11:12 -06:00
2026-03-26 11:04:28 -06:00
2026-03-26 11:04:28 -06:00
2025-07-14 12:43:28 -06:00
2026-05-12 15:38:00 -06:00
2025-06-11 09:42:55 +02:00
2026-02-24 17:39:34 +01:00
2025-06-11 09:42:55 +02:00
2025-07-24 08:54:15 +02:00
2026-02-18 08:27:51 -06:00
2026-04-27 12:38:44 +02:00
2025-10-20 11:54:29 -06:00
2025-10-08 13:54:59 -06:00
2025-12-04 09:38:58 -06:00
2025-07-11 10:43:29 -06:00
2026-03-02 15:20:02 +01:00
2026-04-29 10:32:04 +02:00
2026-03-03 09:09:43 +01:00
2025-10-22 11:09:24 +02:00
2025-07-08 13:11:12 -06:00
2025-09-19 11:54:27 -06:00
2025-07-30 08:01:11 +02:00
2026-02-13 08:16:25 +01:00