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