From 644273fc5ccdcec1c0890bfe4bf8d8ca35d72cb2 Mon Sep 17 00:00:00 2001 From: Magnus Malm Date: Mon, 22 Feb 2021 15:47:59 +0100 Subject: [PATCH] test: Add 2 convenience shell functions for test development Signed-off-by: Magnus Malm --- test/runtest.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/runtest.sh b/test/runtest.sh index 47d60fc0..9813951d 100755 --- a/test/runtest.sh +++ b/test/runtest.sh @@ -6,6 +6,17 @@ texec() { ./testenv_exec.sh "$finit_pid" "$@" } +pause() { + echo "Press any key to continue... " + read -r REPLY +} + +toggle_finit_debug() { + say 'Toggle finit debug' + texec sh -c "/bin/initctl debug" + sleep 0.5 +} + color_reset='\e[0m' fg_red='\e[1;31m' fg_green='\e[1;32m'