yueawang / oap-perf-suite

OAP Cluster Performance TestSuite
2 stars 5 forks source link

Added git branch parameter support #16

Closed zhangweilst closed 6 years ago

zhangweilst commented 6 years ago

There are 3 changes in this file: 1, Add the branch parameter to specify which git branch should we use of the benchmark. Use -b or --branch option to pass the branch parameter. 2, Refactored the code in function main and split it with "beforeRun" and "afterRun". 3, Instead of handling the input parameters manually, we now use "getopt" to process the parameters, which is more scalable.

Tests: Tested with daily test with options --rerun(-r), -c(--cron) and --branch branch_name (-b branch_name)