aboutsummaryrefslogtreecommitdiff
path: root/benchtests
diff options
context:
space:
mode:
authorSu Lifan <su-lifan@linux.alibaba.com>2022-02-25 16:58:07 +0800
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2022-03-08 19:42:52 +0530
commitedddffc9df5ea5882192bca7ddaad8f6440bcc44 (patch)
tree07e87d3c4dfef99322be1510b23958725e78c4f1 /benchtests
parent6de743a4e31a94e3d022e64a90c9082290a5a573 (diff)
downloadglibc-edddffc9df5ea5882192bca7ddaad8f6440bcc44.tar
glibc-edddffc9df5ea5882192bca7ddaad8f6440bcc44.tar.gz
glibc-edddffc9df5ea5882192bca7ddaad8f6440bcc44.tar.bz2
glibc-edddffc9df5ea5882192bca7ddaad8f6440bcc44.zip
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 <siddhesh@sourceware.org>
Diffstat (limited to 'benchtests')
-rw-r--r--benchtests/scripts/benchout_strings.schema.json7
1 files changed, 6 insertions, 1 deletions
diff --git a/benchtests/scripts/benchout_strings.schema.json b/benchtests/scripts/benchout_strings.schema.json
index 7c9a67134b..bfd9b4e6c0 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
}
}