[PATCH v9 3/4] selftests: gpio: add a helper for reading GPIO line names