GNU C Library master sources branch master updated. glibc-2.28.9000-178-gc892ae0

lsandov1@sourceware.org lsandov1@sourceware.org
Mon Oct 8 14:12:00 GMT 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  c892ae04f47908479220247a311bc0067229b592 (commit)
      from  a68ec8eac27ba5bed195bf574fdc0f391cde6fbf (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=c892ae04f47908479220247a311bc0067229b592

commit c892ae04f47908479220247a311bc0067229b592
Author: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Date:   Thu Oct 4 16:40:36 2018 -0500

    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.

diff --git a/ChangeLog b/ChangeLog
index 70782a6..af0f15b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
 	[BZ #23740]
diff --git a/benchtests/scripts/compare_bench.py b/benchtests/scripts/compare_bench.py
index 88e8911..f4b7742 100755
--- a/benchtests/scripts/compare_bench.py
+++ b/benchtests/scripts/compare_bench.py
@@ -175,7 +175,7 @@ if __name__ == '__main__':
     parser.add_argument('--schema',
                         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)')
-    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()
 

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                           |    5 +++++
 benchtests/scripts/compare_bench.py |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources



More information about the Glibc-cvs mailing list