From f1b1dd26cff876fa36428779fc2d6b3f7705c15b Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Thu, 24 Oct 2019 14:47:32 +0200 Subject: [PATCH] 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. --- tool/run/log/amt | 1 + tool/run/log/serial | 1 + 2 files changed, 2 insertions(+) diff --git a/tool/run/log/amt b/tool/run/log/amt index 5d1913ebd..7ef3d284a 100644 --- a/tool/run/log/amt +++ b/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] diff --git a/tool/run/log/serial b/tool/run/log/serial index 02baa7ce1..98a604e98 100644 --- a/tool/run/log/serial +++ b/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 { }