mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Tests: Fix cmake --trace=json-v1 test expectation for integer time
Extend the `time` field check from commit c829f0cfca (trace: Add time
and stack level to JSON output format, 2020-01-20, v3.17.0-rc1~105^2) to
accept a timestamp that happens to be formatted as an exact integer.
This commit is contained in:
@@ -79,7 +79,7 @@ def assert_fields_look_good(line):
|
||||
assert isinstance(line['frame'], int)
|
||||
assert isinstance(line['global_frame'], int)
|
||||
assert isinstance(line['line'], int)
|
||||
assert isinstance(line['time'], float)
|
||||
assert isinstance(line['time'], float) or isinstance(line['time'], int)
|
||||
|
||||
|
||||
with open(trace_file, 'r') as fp:
|
||||
|
||||
Reference in New Issue
Block a user