<commit_before>#!/bin/bash

set -ex

export KEEP_LOCALRC=1
export ENABLED_SERVICES=designate,designate-api,designate-central,designate-sink,designate-mdns

# Prepare some localrc values
pushd $BASE/new/devstack
echo "DESIGNATE_SERVICE_PORT_DNS=5322" >> $BASE/new/devstack/localrc
popd

# Run DevStack Gate
$BASE/new/devstack-gate/devstack-vm-gate.sh<commit_msg>Update gate_hook to support multiple drivers<commit_after>#!/bin/bash

set -ex

pushd $BASE/new/devstack

export KEEP_LOCALRC=1
export ENABLED_SERVICES=designate,designate-api,designate-central,designate-sink,designate-mdns

echo "DESIGNATE_SERVICE_PORT_DNS=5322" >> $BASE/new/devstack/localrc

DEVSTACK_GATE_DESIGNATE_DRIVER=${DEVSTACK_GATE_DESIGNATE_DRIVER:-powerdns}

if [ "$DEVSTACK_GATE_DESIGNATE_DRIVER" == "powerdns" ]; then
    echo "DESIGNATE_BACKEND_DRIVER=powerdns" >> $BASE/new/devstack/localrc

elif [ "$DEVSTACK_GATE_DESIGNATE_DRIVER" == "bind9" ]; then
    export ENABLED_SERVICES+=,designate-pool-manager
    echo "DESIGNATE_BACKEND_DRIVER=bind9_pool" >> $BASE/new/devstack/localrc

fi

popd

# Run DevStack Gate
$BASE/new/devstack-gate/devstack-vm-gate.sh
{'fraction_non_alphanumeric': 0.11297440423654016, 'fraction_numerical': 0.01059135039717564, 'mean_word_length': 6.767123287671233, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7364751', 'n_tokens_mistral': 457, 'n_tokens_neox': 446, 'n_words': 60}