Python script to automate binary search
Usage : python Binary_search.py <Lower_bound> <Upper_bound> Configuration file : Binary_search.cfg
- Make sure all your entries are correct in configuration file i.e Binary_search.cfg (Go to line number to see the config file entries)
- Make sure you have the files deploy_module.py,Binary_search.cfg,color.py,get-scores.pl,log.py,mac in the same location where you have the main script Binary_search.py
- Run the scrpt like ./Binary_search.py <Lower_bound> <Upper_bound>
LIMIT = 42 ### Specify your limit value (base value) which will be used by the script to check whether the deployed change is good or bad
HIGHER_IS_BETTER = false ### Entry must be either "true" or "false"
PXEBENCH_SCRIPT = /vmfs/volumes/datastore1/playground/pxebench.sh ### Specify the script used to test the change
RESULT_HowTo = 1 ### Entry must be either 1 or 2. If its 1 then script uses get-scores.pl to get the results and if its 2 then it uses "grep -i vmqa" to get the results
NOISY = 1 ### In case if the test is noisy specify here as 1 else specify as 0
NOISE_RANGE = 8 - 10 ### Specify the noise range here
MACHINE_IP = 10.133.208.15 ### Sepcify the testbed machine IP address
RUNLIST = /vmfs/volumes/datastore1/playground/boothalt.rl ### Specify the runlist that you use to test the change here
TEST = boothalt_rhel6.1server_64_hwexec_swmmu_32vcpu_256gb ### Here you need to specify the test which will be used by the script while getting the result
If you are using any test bed with the script for the first time, script will throw a message stating to run mac-setup.py which will get basic informations about the test bed required by the script.
To avoid this you can manually run mac-setup.py before running the script. Once this is done, entries will be added in the mac file and you do not require to run mac-setup.py again before running Binary_search.py. You have to do the same only when you use the test bed for the first time.