mirror of
https://github.com/troglobit/finit.git
synced 2026-10-23 11:44:37 +00:00
test: Add 2 convenience shell functions for test development
Signed-off-by: Magnus Malm <magnusmalm@gmail.com>
This commit is contained in:
1 parent
a28bb6f951
commit
644273fc5c
1 file changed
+11
@@ -6,6 +6,17 @@ texec() {
|
|||||||
./testenv_exec.sh "$finit_pid" "$@"
|
./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'
|
color_reset='\e[0m'
|
||||||
fg_red='\e[1;31m'
|
fg_red='\e[1;31m'
|
||||||
fg_green='\e[1;32m'
|
fg_green='\e[1;32m'
|
||||||
|
|||||||
Reference in new issue
Block a user