Commit 2a3eefc
committed
tst_net.sh: Ignore stderr on tst_rhost_run -c tst_net_iface_prefix
This is another way to harden against the problem, which was manifested by
893ca0a and fixed by 02d5e99.
There were previously two problems:
1) Unneeded multiple slow kernel config detection (TINFO: CONFIG_LATENCYTOP ...).
2) Printing TINFO message to stderr from tst_net_iface_prefix which was
redirected by tst_rhost_run() to stdout and then used in "eval" in
tst_net_setup_network():
eval: tst_kconfig.c:88:: not found
[: tst_kconfig.c:88:: unexpected operator
# ping01.sh
ping01 1 TINFO: initialize 'rhost' 'ltp_ns_veth1' interface
/opt/ltp/testcases/bin/ping01.sh: 142: [: tst_kconfig.c:88:: unexpected operator
tst_kconfig.c:88: TINFO: Parsing kernel config '/proc/config.gz'
tst_kconfig.c:667: TINFO: CONFIG_LATENCYTOP kernel option detected which might slow the execution
tst_kconfig.c:88: TINFO: Parsing kernel config '/proc/config.gz'
tst_kconfig.c:667: TINFO: CONFIG_LATENCYTOP kernel option detected which might slow the execution
tst_kconfig.c:88: TINFO: Parsing kernel config '/proc/config.gz'
tst_kconfig.c:667: TINFO: CONFIG_LATENCYTOP kernel option detected which might slow the execution
tst_kconfig.c:88: TINFO: Parsing kernel config '/proc/config.gz'
tst_kconfig.c:667: TINFO: CONFIG_LATENCYTOP kernel option detected which might slow the execution
tst_kconfig.c:88: TINFO: Parsing kernel config '/proc/config.gz'
tst_kconfig.c:667: TINFO: CONFIG_LATENCYTOP kernel option detected which might slow the execution
tst_kconfig.c:88: TINFO: Parsing kernel config '/proc/config.gz'
tst_kconfig.c:667: TINFO: CONFIG_LATENCYTOP kernel option detected which might slow the execution
tst_kconfig.c:88: TINFO: Parsing kernel config '/proc/config.gz'
tst_kconfig.c:667: TINFO: CONFIG_LATENCYTOP kernel option detected which might slow the execution
tst_kconfig.c:88: TINFO: Parsing kernel config '/proc/config.gz'
tst_kconfig.c:667: TINFO: CONFIG_LATENCYTOP kernel option detected which might slow the execution
/opt/ltp/testcases/bin/ping01.sh: 142: [: tst_kconfig.c:88:: unexpected operator
ping01 1 TINFO: add remote addr 10.0.0.1/24
tst_kconfig.c:88: TINFO: Parsing kernel config '/proc/config.gz'
tst_kconfig.c:667: TINFO: CONFIG_LATENCYTOP kernel option detected which might slow the execution
/opt/ltp/testcases/bin/ping01.sh: 142: [: tst_kconfig.c:88:: unexpected operator
ping01 1 TINFO: add remote addr fd00:1:1:1::1/64
tst_kconfig.c:88: TINFO: Parsing kernel config '/proc/config.gz'
tst_kconfig.c:667: TINFO: CONFIG_LATENCYTOP kernel option detected which might slow the execution
/opt/ltp/testcases/bin/ping01.sh: 1: eval: tst_kconfig.c:88:: not found
/opt/ltp/testcases/bin/ping01.sh: 1: eval: 34mTINFO:: not found
/opt/ltp/testcases/bin/ping01.sh: 1: eval: 34mTINFO:: not found
/opt/ltp/testcases/bin/ping01.sh: 142: [: tst_kconfig.c:88:: unexpected operator
/opt/ltp/testcases/bin/ping01.sh: 1: eval: tst_kconfig.c:88:: not found
/opt/ltp/testcases/bin/ping01.sh: 1: eval: 34mTINFO:: not found
/opt/ltp/testcases/bin/ping01.sh: 1: eval: 34mTINFO:: not found
ping01 1 TINFO: Network config (local -- remote):
Link: https://lore.kernel.org/ltp/20250117143105.777229-1-pvorel@suse.cz/
Signed-off-by: Petr Vorel <pvorel@suse.cz>1 parent e43c5b2 commit 2a3eefc
1 file changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
| |||
239 | 240 | | |
240 | 241 | | |
241 | 242 | | |
| 243 | + | |
242 | 244 | | |
243 | 245 | | |
244 | 246 | | |
245 | | - | |
| 247 | + | |
246 | 248 | | |
247 | 249 | | |
248 | | - | |
| 250 | + | |
249 | 251 | | |
250 | 252 | | |
251 | 253 | | |
| 254 | + | |
252 | 255 | | |
253 | 256 | | |
254 | 257 | | |
| |||
275 | 278 | | |
276 | 279 | | |
277 | 280 | | |
278 | | - | |
| 281 | + | |
279 | 282 | | |
280 | 283 | | |
281 | | - | |
| 284 | + | |
282 | 285 | | |
283 | 286 | | |
284 | 287 | | |
| |||
1089 | 1092 | | |
1090 | 1093 | | |
1091 | 1094 | | |
1092 | | - | |
| 1095 | + | |
1093 | 1096 | | |
1094 | 1097 | | |
1095 | 1098 | | |
1096 | 1099 | | |
1097 | 1100 | | |
1098 | 1101 | | |
1099 | 1102 | | |
1100 | | - | |
| 1103 | + | |
1101 | 1104 | | |
1102 | 1105 | | |
1103 | 1106 | | |
| |||
0 commit comments