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)
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


No differences found
This page took 0.024794 seconds and 4 git commands to generate.