HomeClusterLabs Projects

Refactor: python, cts: Test stats are now just a dict.

Description

Refactor: python, cts: Test stats are now just a dict.

I originally imagined stats as their own module, with an enum limiting
what kinds of things could be stored as a statistic. However, we use
them too widely and store various unpredictable things in them (search
for self.incr) to make this possible.

So instead, just make it a publically available dict and remove the
dict-like interface that was on CTSTest to access stats before.
Instead, you just use the stats directly.

Details

Provenance
clumensAuthored on Apr 18 2023, 12:11 PM
Parents
rPb0c3cc60a694: Refactor: python, cts: Add a Timer class with a context manager.
Branches
Unknown
Tags
Unknown