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:
@@ -78,6 +78,7 @@ proc run_log { wait_for_re timeout_value } {
|
|||||||
|
|
||||||
spawn /bin/sh -c "$amt_cmd"
|
spawn /bin/sh -c "$amt_cmd"
|
||||||
set output_spawn_id $spawn_id
|
set output_spawn_id $spawn_id
|
||||||
|
fconfigure $output_spawn_id -translation { crlf lf }
|
||||||
|
|
||||||
set kernel_msg [run_boot_string]
|
set kernel_msg [run_boot_string]
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ proc run_log { wait_for_re timeout_value } {
|
|||||||
|
|
||||||
spawn /bin/sh -c "$serial_cmd_chain"
|
spawn /bin/sh -c "$serial_cmd_chain"
|
||||||
set output_spawn_id $spawn_id
|
set output_spawn_id $spawn_id
|
||||||
|
fconfigure $output_spawn_id -translation { crlf lf }
|
||||||
|
|
||||||
expect {
|
expect {
|
||||||
-i $output_spawn_id $kernel_msg { }
|
-i $output_spawn_id $kernel_msg { }
|
||||||
|
|||||||
Reference in New Issue
Block a user