tests: Correct timing of python tests with python3 < 3.7
authorKienan Stewart <kstewart@efficios.com>
Wed, 10 Jan 2024 16:11:08 +0000 (11:11 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 6 Feb 2024 22:29:45 +0000 (17:29 -0500)
commitf7169e41979bb8a57ecf2ff3683fefa74e05179b
tree904aca6d0d12ffbd4f0256df95bf22ee6bedf612
parent52eb43baf3f6c77328825ad1122ceba439714b89
tests: Correct timing of python tests with python3 < 3.7

`time.monotonic_ns()` was introduced in python 3.7. Prior to that, the
other available monotonic time function was `time.monotonic()` which was
itself introduced in python 3.3.

For python3 < 3.3, the automatic timing of TAP tests is disabled.

The use of underscores for readable integers was also only introduced in
python 3.6.

Change-Id: Ibf85669c4d108347097d2cea7ab5d28cde9d0cc6
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/lttngtest/tap_generator.py
tests/utils/test_utils.py
This page took 0.025378 seconds and 4 git commands to generate.