Fix: tests: don't assume sequential cpuids
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 9 Aug 2022 15:38:16 +0000 (15:38 +0000)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 17 Aug 2022 20:28:22 +0000 (16:28 -0400)
commit206e6505316df1b86196d6582ef1e632e47d43a5
tree8795aee8ebe281341529f5fd1edb99ecf308e932
parentd5ea894457d77598d1bb51ff1d4ba6f1d66fcc3c
Fix: tests: don't assume sequential cpuids

On Linux CPU ids aren't sequential if a CPU is offlined or unplugged.
Get the list of currently available CPU ids from sysfs and pick a random
one, if sysfs is not available use the previous behavior.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ibdb63c7d036389104ac2f629827a6dce59e06983
tests/regression/tools/tracefile-limits/test_tracefile_count
This page took 0.0278929999999999 seconds and 4 git commands to generate.