diff options
| author | Yumei Huang <yuhuang@redhat.com> | 2025-09-26 14:15:53 +0800 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-09-26 12:14:32 +0200 |
| commit | de28c20d8051735d0b828cedb8697c8ef65dd719 (patch) | |
| tree | 2529aefc8354c757148e884d5c5951809b6d7ccd /doc | |
| parent | f07d7b0c2a90f5888f1f4931274956867b10c793 (diff) | |
| download | passt-de28c20d8051735d0b828cedb8697c8ef65dd719.tar passt-de28c20d8051735d0b828cedb8697c8ef65dd719.tar.gz passt-de28c20d8051735d0b828cedb8697c8ef65dd719.tar.bz2 passt-de28c20d8051735d0b828cedb8697c8ef65dd719.tar.lz passt-de28c20d8051735d0b828cedb8697c8ef65dd719.tar.xz passt-de28c20d8051735d0b828cedb8697c8ef65dd719.tar.zst passt-de28c20d8051735d0b828cedb8697c8ef65dd719.zip | |
test: Update lib/term for clearer output when DEBUG is enabled
When running tests with DEBUG=1, we used to get some
"DEBUG:DEBUG:DEBUG:" in logs, which is not very helpful for
debugging.
With this patch, the log would show the steps like below:
DEBUG: g1tools ip jq dhclient socat cat
DEBUG: htools ip jq
DEBUG:
DEBUG: set MAP_HOST4 192.0.2.1
DEBUG: set MAP_HOST6 2001:db8:9a55::1
The problem here is that "${@}" is magic and expands to multiple
arguments, even though it's quoted. That means instead of the whole
message going into a single string, the "DEBUG:" becomes the format
string and the rest goes into unused parameters.
Suggested-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Yumei Huang <yuhuang@redhat.com>
[dwg: root cause explanation in commit message]
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions
