Fix plugin test run.sh script parameter error (#3621)

* Modify plugin test run.sh script parameter error

* shell fun error, delete ()

* delete space line
This commit is contained in:
aderm 2019-10-16 15:32:37 +08:00 committed by 吴晟 Wu Sheng
parent c2e261e482
commit 353c1ba2c6
1 changed files with 4 additions and 4 deletions

8
test/plugin/run.sh Normal file → Executable file
View File

@ -27,9 +27,8 @@ mvnw=${home}/../../mvnw
agent_home=${home}"/../../skywalking-agent"
scenarios_home="${home}/scenarios"
print_help() {
echo "Usage: run.sh [OPTION] SCENARIO [SCENARIO]"
echo "Usage: run.sh [OPTION] SCENARIO_NAME"
echo -e "\t-f, --force_build \t\t do force to build Plugin-Test tools and images"
echo -e "\t--build_id, \t\t\t specify Plugin_Test's image tag. Defalt: latest"
echo -e "\t--parallel_run_size, \t\t parallel size of test cases. Default: 1"
@ -44,11 +43,9 @@ parse_commandline() {
case "$_key" in
-f|--force_build)
force_build="on"
shift
;;
--cleanup)
cleanup="on"
shift
;;
--build_id)
test $# -lt 2 && exitWithMessage "Missing value for the optional argument '$_key'."
@ -121,6 +118,8 @@ if [[ "$cleanup" == "on" ]]; then
exit 0
fi
test -z "$scenario_name" && exitWithMessage "Missing value for the scenario argument"
if [[ ! -d ${agent_home} ]]; then
echo "[WARN] SkyWalking Agent not exists"
${mvnw} -f ${home}/../../pom.xml -Pagent -DskipTests clean package
@ -141,6 +140,7 @@ fi
echo "start submit job"
scenario_home=${scenarios_home}/${scenario_name} && cd ${scenario_home}
supported_version_file=${scenario_home}/support-version.list
if [[ ! -f $supported_version_file ]]; then
exitWithMessage "cannot found 'support-version.list' in directory ${scenario_name}"