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>
Fri, 19 Aug 2022 15:18:35 +0000 (11:18 -0400)
commit4e4e511415375c14912856d0fd6aa3be89d96edc
tree122b0dbd4e86059727d745f89abfcf095cc955b2
parentf4616c0a5a5b95029bd48a8b78e5b4c484b3a548
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.030664 seconds and 4 git commands to generate.