jjb: xci: Only set default scenario if no scenario is set 65/55065/1
authorMarkos Chandras <mchandras@suse.de>
Fri, 6 Apr 2018 14:30:17 +0000 (15:30 +0100)
committerMarkos Chandras <mchandras@suse.de>
Fri, 6 Apr 2018 14:33:28 +0000 (15:33 +0100)
commit9743bf690567b2cf1fc079768a32213717e297e2
treede7f4a7ae2b1c22e0f6e0a1640f75b40afa0a85a
parente876599edaaa4ab25a8f4160ef9dc7b3cc97b62f
jjb: xci: Only set default scenario if no scenario is set

Previously, the code was already setting the default scenario if we had
changes outside the xci/scenario directory. However, this is somewhat
problematic since scenarios may touch other files which do not necessary
affect other scenarios such as anything in xci/playbooks etc. As such,
lets only set a default scenario if no scenario was set up to that
point. However, since installers and scenarios need to match, we also
need to consider installer changes because we fallback to the default
scenario. Finally, since we are filtering results with 'uniq' we can
simply drop the bash regexps prior to adding the scenario to the array.

Change-Id: Ie961071b3e93d04a860bb6655513654208b1a9d4
Signed-off-by: Markos Chandras <mchandras@suse.de>
jjb/xci/xci-set-scenario.sh