From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A512CA034F; Mon, 6 Dec 2021 14:56:13 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9CBBC41160; Mon, 6 Dec 2021 14:56:12 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 6B198410E5 for ; Mon, 6 Dec 2021 14:56:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638798970; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WlfIZLtulW9z63VbmpOWLT7UrHkn8DKX4VTky7ePIKM=; b=ixMhJ9O0QhrMcYB2P92+X2ALoyDr0bsfrbusD4r8tBAPnItQ6QBo/c6u+sk1NElneDzHs/ DMrZElgWlNK3udepcwGbvqMtf3IgAGsbYqbST5m5svr2RL/fPywSai4vDrghjR1rF6zdZg KyZRt9hrHOUVHCCRSsotwLUYqDGWM3g= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-485-73ZbKedAM02MVSYIh3oYoQ-1; Mon, 06 Dec 2021 08:56:08 -0500 X-MC-Unique: 73ZbKedAM02MVSYIh3oYoQ-1 Received: by mail-lf1-f72.google.com with SMTP id m1-20020ac24281000000b004162863a2fcso3808779lfh.14 for ; Mon, 06 Dec 2021 05:56:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=WlfIZLtulW9z63VbmpOWLT7UrHkn8DKX4VTky7ePIKM=; b=dJwdyaNvELRQA0mNCGgymluIdXftD2fDWRT3I5t+FX4d9lpvfxzeOuSF/K+4Tp9o+V lv/EOgOiRR2PQWULk9y/92s1hMAb7Qf4zUMPqG5Kw82qO9Z21CEBX+xISLUmwvwsGLvx QVPI3pdspiGlh0P3k9lqbIs+rbwgfBzBxTEZyLDUebFJKTdktJ7pXU+wguaeCY1cJPCl loSQacTyUFvzgUZcq/bQRYoiuM69Tj8TGO7j3cmLVzDphQge1FZtcu/7Lc5T3akT9gTY t6rflkL+YBL8Js3H3RIHSJ996qJK55rclDScg4FBf9e4GvlDEXcReZ04j2R9HZF+vuMM KW7A== X-Gm-Message-State: AOAM53372f6dSVYrqtgWgHSGmWMuJ0eabCLBMwrZ3Xf5M+0IEzMchaCI QMsa2txBlS4nseM4nzoy2rbraPqIoe7OqOyibtDYJv6PoH+Jim+cFVJabhs4qr21JSbVlZ43fsd Q3/P8Lktx1dNcFiT+Gps= X-Received: by 2002:a05:6512:1304:: with SMTP id x4mr35961275lfu.484.1638798967301; Mon, 06 Dec 2021 05:56:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxs+oWbrWEi8dlZlm9TWxWGQ/7Uv2vNgLTdpr9f3Lfaxl9WOgjbdQmwsUKmHcfS1HIT37LmdJymov5zliAcjMs= X-Received: by 2002:a05:6512:1304:: with SMTP id x4mr35961251lfu.484.1638798967044; Mon, 06 Dec 2021 05:56:07 -0800 (PST) MIME-Version: 1.0 References: <1638792877-2000-1-git-send-email-juraj.linkes@pantheon.tech> In-Reply-To: <1638792877-2000-1-git-send-email-juraj.linkes@pantheon.tech> From: David Marchand Date: Mon, 6 Dec 2021 14:55:55 +0100 Message-ID: Subject: Re: [PATCH v1] framework/dut: fix pylama errors To: =?UTF-8?Q?Juraj_Linke=C5=A1?= Cc: "Tu, Lijuan" , Owen Hilyard , dts@dpdk.org Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org On Mon, Dec 6, 2021 at 1:14 PM Juraj Linke=C5=A1 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 =3D self.send_expect("cat config/defconfig_%s | sed '/^#/d' = | sed '/^\s*$/d'" > + % self.target, "# ") Is this part still needed? > + > + def_rte_config =3D re.findall(config+'=3D(\S+)', out) > + if def_rte_config: > + return def_rte_config[0] > + else: > + return None > + --=20 David Machand