xci: xci-deploy.sh: Only check for xci_overrides files in scenarios cache 69/57469/2
authorMarkos Chandras <mchandras@suse.de>
Wed, 16 May 2018 13:06:16 +0000 (14:06 +0100)
committerMarkos Chandras <mchandras@suse.de>
Thu, 17 May 2018 08:32:18 +0000 (09:32 +0100)
xci/scenarios has been removed from releng-xci so there is not point in
checking for xci_overrides files there.

Change-Id: If6b9306968817b0ba8fb362b532ac8492d274676
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/xci-deploy.sh

index a04fb21..07f4d39 100755 (executable)
@@ -164,8 +164,8 @@ echo "-------------------------------------------------------------------------"
 
 # Get scenario variables overrides
 #-------------------------------------------------------------------------------
-source $(find $XCI_PATH/xci/scenarios/${DEPLOY_SCENARIO} -name xci_overrides) &>/dev/null || \
-    source $(find $XCI_SCENARIOS_CACHE/${DEPLOY_SCENARIO} -name xci_overrides) &>/dev/null || :
+source $(find $XCI_SCENARIOS_CACHE/${DEPLOY_SCENARIO} -name xci_overrides) &>/dev/null &&
+    echo "Sourced ${DEPLOY_SCENARIO} overrides files successfully!" || :
 
 #-------------------------------------------------------------------------------
 # Log info to console