Added architecture specific code as enabling for power.
[joid.git] / ci / tools.sh
1 ##############################################################################
2 # Copyright (c) 2017 Nokia and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10
11 #######################################
12 # Echo printing in yellow bold color
13 # Arguments:
14 #   Same as for echo
15 # Returns:
16 #   None
17 #######################################
18 function echo_info { (
19     # don't clutter the script output with the xtrace of the echo command
20     { set +x; } 2> /dev/null
21
22     yellow_bold='\033[1;33m'
23     color_off='\033[0m'
24     echo "${@:1:($#-1)}" -e "$yellow_bold${@: -1}$color_off";
25   )
26 }