From 17082e8ac1b5335465876d100774893ba735fca4 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Sun, 17 Apr 2022 19:49:17 +0200 Subject: [PATCH] test: resize the terminal automagically with INTERACTIVE_DEBUG=yes --- test/test-functions | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/test/test-functions b/test/test-functions index fde174913c3..d5572ecd6c9 100644 --- a/test/test-functions +++ b/test/test-functions @@ -1748,14 +1748,12 @@ install_debug_tools() { local getty_override="${initdir:?}/etc/systemd/system/serial-getty@.service.d" mkdir -p "$getty_override" echo -e "[Service]\nEnvironment=TERM=linux" >"$getty_override/default-TERM.conf" + echo 'export TERM=linux' >>"$initdir/etc/profile" - cat >"$initdir/etc/motd" </dev/null; then + image_install resize + echo "resize" >>"$initdir/etc/profile" + fi fi }