devstack_custom/tools/jenkins/run_test.sh
2011-11-10 11:43:41 -08:00

20 lines
369 B
Bash
Executable file

#!/bin/bash
EXECUTOR_NUMBER=$1
ADAPTER=$2
RC=$3
function usage() {
echo "Usage: $0 - Run a test"
echo ""
echo "$0 [EXECUTOR_NUMBER] [ADAPTER] [RC (optional)]"
exit 1
}
# Validate inputs
if [[ "$EXECUTOR_NUMBER" = "" || "$ADAPTER" = "" ]]; then
usage
fi
# Execute configuration script
cd adapters && ./$ADAPTER.sh $EXECUTOR_NUMBER $ADAPTER "$RC"