From: Su Lifan Date: Fri, 25 Feb 2022 08:58:07 +0000 (+0800) Subject: benchtests: make compare_strings.py accept string as attribute value X-Git-Tag: glibc-2.36~509 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=edddffc9df5ea5882192bca7ddaad8f6440bcc44;p=thirdparty%2Fglibc.git benchtests: make compare_strings.py accept string as attribute value Commit ac759b1fbf28a82d99afde9046f8b72c7cba5dae added attribute "overlap" to bench-memmove-walk, whose value is a string. This change makes compare_strings.py fail since benchout_strings.schema.json requires the values of attributes to be number. This patch relaxes such constraint. Reviewed-by: Siddhesh Poyarekar --- diff --git a/benchtests/scripts/benchout_strings.schema.json b/benchtests/scripts/benchout_strings.schema.json index 7c9a67134bb..bfd9b4e6c05 100644 --- a/benchtests/scripts/benchout_strings.schema.json +++ b/benchtests/scripts/benchout_strings.schema.json @@ -28,7 +28,12 @@ "items": {"type": "number"} } }, - "additionalProperties": {"type": "number"}, + "additionalProperties": { + "oneOf": [ + { "type": "number" }, + { "type": "string" } + ] + }, "minProperties": 2 } }