Browse Source

run: tweak CRLF translation in log scripts

Ideally, I'd like to disable expects's translation here, which does not
work. The current setting is the result of testing all combinations.
issue3709
Christian Helmuth 2 years ago
parent
commit
f1b1dd26cf
  1. 1
      tool/run/log/amt
  2. 1
      tool/run/log/serial

1
tool/run/log/amt

@ -78,6 +78,7 @@ proc run_log { wait_for_re timeout_value } {
spawn /bin/sh -c "$amt_cmd"
set output_spawn_id $spawn_id
fconfigure $output_spawn_id -translation { crlf lf }
set kernel_msg [run_boot_string]

1
tool/run/log/serial

@ -55,6 +55,7 @@ proc run_log { wait_for_re timeout_value } {
spawn /bin/sh -c "$serial_cmd_chain"
set output_spawn_id $spawn_id
fconfigure $output_spawn_id -translation { crlf lf }
expect {
-i $output_spawn_id $kernel_msg { }

Loading…
Cancel
Save