mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
This was missed in commit 54c5654f7d (ctest: Optionally terminate tests
with a custom signal on timeout, 2023-05-11, v3.27.0-rc1~18^2).
28 lines
487 B
Python
28 lines
487 B
Python
import sys
|
|
import json
|
|
import re
|
|
|
|
def is_bool(x):
|
|
return isinstance(x, bool)
|
|
|
|
def is_dict(x):
|
|
return isinstance(x, dict)
|
|
|
|
def is_list(x):
|
|
return isinstance(x, list)
|
|
|
|
def is_int(x):
|
|
return isinstance(x, int) or isinstance(x, long)
|
|
|
|
def is_float(x):
|
|
return isinstance(x, float)
|
|
|
|
def is_string(x):
|
|
return isinstance(x, str) or isinstance(x, unicode)
|
|
|
|
def check_re(x, regex):
|
|
assert re.search(regex, x)
|
|
|
|
with open(sys.argv[1]) as f:
|
|
ctest_json = json.load(f)
|