test: Add 2 convenience shell functions for test development

Signed-off-by: Magnus Malm <magnusmalm@gmail.com>
This commit is contained in:
Magnus Malm
2021-02-22 15:47:59 +01:00
parent a28bb6f951
commit 644273fc5c
+11
View File
@@ -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'