Skip to content

Commit 4b2ed76

Browse files
chiarazampollidavidrohr
authored andcommitted
Adding script to load functions, and possibility to add more wf
1 parent a5b95db commit 4b2ed76

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

prodtests/full-system-test/dpl-workflow.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# ---------------------------------------------------------------------------------------------------------------------
44
# Get this script's directory and load common settings (use zsh first (e.g. on Mac) and fallback on `readlink -f` if zsh is not there)
55
MYDIR="$(dirname $(realpath $0))"
6+
source $MYDIR/gen_topo_helper_functions.sh
67
source $MYDIR/setenv.sh
78

89
if [[ $EPNSYNCMODE == 0 && $DPL_CONDITION_BACKEND != "http://o2-ccdb.internal" && $DPL_CONDITION_BACKEND != "http://localhost:8084" && $DPL_CONDITION_BACKEND != "http://127.0.0.1:8084" ]]; then
@@ -492,7 +493,12 @@ if [[ ! -z "$EXTRA_WORKFLOW" ]]; then
492493
fi
493494

494495
if [[ ! -z "$ADD_EXTRA_WORKFLOW" ]]; then
495-
add_W $ADD_EXTRA_WORKFLOW
496+
OLD_IFS=$IFS
497+
IFS=','
498+
for wf in $ADD_EXTRA_WORKFLOW; do
499+
[[ ! -z "$wf" ]] && add_W $wf
500+
done
501+
IFS="$OLD_IFS"
496502
fi
497503

498504
# ---------------------------------------------------------------------------------------------------------------------
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
if [ "0$O2DPG_ROOT" == "0" ]; then
4+
echo O2DPG environment not loaded
5+
exit 1
6+
fi
7+
8+
source $O2DPG_ROOT/DATA/common/gen_topo_helper_functions.sh

0 commit comments

Comments
 (0)