mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
benchtests: Set float type on --threshold argument
Otherwise, we see the following runtime error when using the parameter: File "./glibc/benchtests/scripts/compare_bench.py", line 46, in do_compare if d > threshold: TypeError: '>' not supported between instances of 'float' and 'str' * benchtests/scripts/compare_bench.py (main): set float type on threshold argument.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
|
||||||
|
|
||||||
|
* benchtests/scripts/compare_bench.py (main): set float type on
|
||||||
|
threshold argument.
|
||||||
|
|
||||||
2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
|
2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
|
||||||
|
|
||||||
[BZ #23740]
|
[BZ #23740]
|
||||||
|
@@ -175,7 +175,7 @@ if __name__ == '__main__':
|
|||||||
parser.add_argument('--schema',
|
parser.add_argument('--schema',
|
||||||
default=os.path.join(os.path.dirname(os.path.realpath(__file__)),'benchout.schema.json'),
|
default=os.path.join(os.path.dirname(os.path.realpath(__file__)),'benchout.schema.json'),
|
||||||
help='JSON file to validate source/dest files (default: %(default)s)')
|
help='JSON file to validate source/dest files (default: %(default)s)')
|
||||||
parser.add_argument('--threshold', default=10.0, help='Only print those with equal or higher threshold (default: %(default)s)')
|
parser.add_argument('--threshold', default=10.0, type=float, help='Only print those with equal or higher threshold (default: %(default)s)')
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user