aboutsummaryrefslogtreecommitdiffstats
path: root/testing/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'testing/scripts')
-rwxr-xr-xtesting/scripts/function.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/scripts/function.sh b/testing/scripts/function.sh
index d9f2054ef..b510d755c 100755
--- a/testing/scripts/function.sh
+++ b/testing/scripts/function.sh
@@ -55,6 +55,20 @@ execute_chroot()
execute "chroot $LOOPDIR $@"
}
+# write green status message to console
+# $1 - msg
+echo_ok()
+{
+ echo -e "${GREEN}$1${NORMAL}"
+}
+
+# write red status message to console
+# $1 - msg
+echo_failed()
+{
+ echo -e "${RED}$1${NORMAL}"
+}
+
function cecho {
echo -e "\033[1;31m$1\033[0m"
}