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.
This commit is contained in:
Christian Helmuth 2019-10-24 14:47:32 +02:00
parent cd5e906bd0
commit f1b1dd26cf
2 changed files with 2 additions and 0 deletions

View File

@ -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]

View File

@ -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 { }