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)
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)