summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2016-04-20 18:43:46 -0400
committerFeng Pan <fpan@redhat.com>2016-04-20 18:43:46 -0400
commit865b502c0ad09f173ccf80cee1577a3d76f46fd4 (patch)
tree797d99d68143fde162c3730798fab6b55ed8880b
parent7d807e9077c0049f3ccee2ba6675a7c14409f182 (diff)
Modify pythonpath definition for strict mode
Change-Id: Ib8a1a6ca80c0653b2cd593dff5a0c71d24b2f24c Signed-off-by: Feng Pan <fpan@redhat.com>
-rw-r--r--jjb/apex/apex.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/jjb/apex/apex.yml b/jjb/apex/apex.yml
index 76586ffc5..9d63d4206 100644
--- a/jjb/apex/apex.yml
+++ b/jjb/apex/apex.yml
@@ -855,7 +855,11 @@
exit 1
fi
fi
- export PYTHONPATH=$PYTHONPATH:${WORKSPACE}/lib/python/apex
+ if [ -z "$PYTHONPATH" ]; then
+ export PYTHONPATH=${WORKSPACE}/lib/python/apex
+ else
+ export PYTHONPATH=$PYTHONPATH:${WORKSPACE}/lib/python/apex
+ fi
else
RPM_LIST=$RPM_INSTALL_PATH
for pkg in common undercloud opendaylight-sfc; do