benchtests: improve argument parsing through argparse library
commit1cf4ae7fe644f5ad37ca82cb432147daf5c8ad77
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Fri, 13 Jul 2018 15:45:40 +0000 (13 10:45 -0500)
committerLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Thu, 19 Jul 2018 19:53:37 +0000 (19 14:53 -0500)
tree550b9b30af93be6a87402649a961bb44d80bd453
parente84bd8514cd4bf37b37d3f68feafc1e20afa4b56
benchtests: improve argument parsing through argparse library

The argparse library is used on compare_bench script to improve command line
argument parsing. The 'schema validation file' is now optional, reducing by
one the number of required parameters.

* benchtests/scripts/compare_bench.py (__main__): use the argparse
library to improve command line parsing.
(__main__): make schema file as optional parameter (--schema),
defaulting to benchtests/scripts/benchout.schema.json.
(main): move out of the parsing stuff to __main_  and leave it
only as caller of main comparison functions.
ChangeLog
benchtests/scripts/compare_bench.py