benchtests: make compare_strings.py accept string as attribute value

Commit ac759b1fbf 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>
This commit is contained in:
Su Lifan 2022-02-25 16:58:07 +08:00 committed by Siddhesh Poyarekar
parent 6de743a4e3
commit edddffc9df

View File

@ -28,7 +28,12 @@
"items": {"type": "number"}
}
},
"additionalProperties": {"type": "number"},
"additionalProperties": {
"oneOf": [
{ "type": "number" },
{ "type": "string" }
]
},
"minProperties": 2
}
}