mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
test: Add 2 convenience shell functions for test development
Signed-off-by: Magnus Malm <magnusmalm@gmail.com>
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user