Skip to content
Snippets Groups Projects

CI pipeline for mysql unit tests

Merged Daniel Hornung requested to merge f-mysql-test into dev
Files
5
+ 6
1
@@ -34,7 +34,12 @@ if [ -z "$MAINPATH" ]; then
@@ -34,7 +34,12 @@ if [ -z "$MAINPATH" ]; then
fi
fi
# Make a backup of the important environment variables.
# Make a backup of the important environment variables.
my_env=$(export -p | grep -E '(MYSQL|DATABASE)' || true)
# Take care: Assignments may be more than one line!
 
_expr="(MYSQL|DATABASE)"
 
my_env=$(export -p | awk '/^declare -x '"$_expr"'/ {PRINT=1} \
 
/^declare -x/ && !/^declare -x '"$_expr"'/ {PRINT=0} \
 
PRINT {print}' \
 
|| true)
source "$MAINPATH/config.defaults"
source "$MAINPATH/config.defaults"
Loading