summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPetri Latvala <petri.latvala@intel.com>2018-09-27 16:11:42 +0300
committerPetri Latvala <petri.latvala@intel.com>2018-10-03 13:26:24 +0300
commit5caab92d0b9c8516b7ea02809608fcd835af19d4 (patch)
tree5708b00ae8fa0e9a152cd139b6a3453e5b487dd5 /docs
parentc5c0dd2e0b6fb2deb2b3e11212250e685177f8ac (diff)
runner: Add time_elapsed field to results
When starting a test run, drop a timestamp file. Do the same when ending a run. Slap those timestamps directly into the time_elapsed field in results.json. Using timestamps instead of measuring actual elapsed time goes against the naming of the field, but the name is chosen by piglit. Even though piglit itself uses timestamps. Corner cases: On incomplete test runs, the end timestamp will be missing. The time_elapsed field will only have the start timestamp. This matches piglit behaviour exactly. On incomplete but resumed test runs, the end timestamp will be the time when the resume finishes. Piglit doesn't do this, and instead leaves the end timestamp missing. Discussing which behaviour is better is left as an exercise to the readers. Signed-off-by: Petri Latvala <petri.latvala@intel.com> Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Cc: Tomi Sarvela <tomi.p.sarvela@intel.com> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions