Merge "Match load_rc_for_rally logic to load_rc_hook"

This commit is contained in:
Jenkins authored and Gerrit Code Review committed 2017-09-05 10:52:44 +00:00
commit 7f25845041
1 file changed
+6 -1
+6 -1
View File
@@ -44,7 +44,12 @@ function load_conf_hook {
# Tweak gate configuration for our rally scenarios
function load_rc_for_rally {
for file in $(ls $RALLY_EXTRA_DIR/*.setup); do
$DSCONF merge_lc $LOCAL_CONF $file
tmpfile=$(tempfile)
config=$(cat $file)
echo "[[local|localrc]]" > $tmpfile
$DSCONF setlc_raw $tmpfile "$config"
$DSCONF merge_lc $LOCAL_CONF $tmpfile
rm -f $tmpfile
done
}