[PATCH v1] framework/dut: fix pylama errors
David Marchand
david.marchand at redhat.com
Mon Dec 6 14:55:55 CET 2021
On Mon, Dec 6, 2021 at 1:14 PM Juraj Linkeš <juraj.linkes at pantheon.tech> wrote:
> @@ -540,6 +542,19 @@ class Dut(Crb):
> except AttributeError:
> self.logger.error("%s is not implemented" % function_name)
>
> + def get_def_rte_config(self, config):
> + """
> + Get RTE configuration from config/defconfig_*.
> + """
> + out = self.send_expect("cat config/defconfig_%s | sed '/^#/d' | sed '/^\s*$/d'"
> + % self.target, "# ")
Is this part still needed?
> +
> + def_rte_config = re.findall(config+'=(\S+)', out)
> + if def_rte_config:
> + return def_rte_config[0]
> + else:
> + return None
> +
--
David Machand
More information about the dts
mailing list