[PATCH v12 6/7] selftests: gpio: add a helper for reading GPIO line names