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>
Thu, 18 Aug 2022 17:55:36 +0000 (13:55 -0400)
commite70d9765955b82ab1e5ab8dc9d5a62b6e8d112dd
treef7431973f300ea17eab41b510ef35738f6a000eb
parent386d53c1e31caf0154e921c4b6d7aa940dfa602e
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.025809 seconds and 4 git commands to generate.