summaryrefslogtreecommitdiff
path: root/lib/test_sysctl.c
diff options
context:
space:
mode:
authorJoel Granados <j.granados@samsung.com>2023-06-16 10:59:16 +0200
committerLuis Chamberlain <mcgrof@kernel.org>2023-06-18 02:32:53 -0700
commita40b702789a480904b15f5843c4ed79f969ee4d5 (patch)
tree5763e264f88be698d987c64309997d5e2cbb787b /lib/test_sysctl.c
parent37e9981e33e4d308c323a56bb908aa54c8f041a8 (diff)
test_sysctl: Fix test metadata getters
The functions get_test_{count,enabled,target} use awk to get the N'th field in the ALL_TESTS variable. A variable with leading zeros (e.g. 0009) is misinterpreted as an entire line instead of the N'th field. Remove the leading zeros so this does not happen. We can now use the helper in tests 6, 7 and 8. Signed-off-by: Joel Granados <j.granados@samsung.com> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'lib/test_sysctl.c')
0 files changed, 0 insertions, 0 deletions