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 9914F45906; Wed, 4 Sep 2024 23:13:59 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 42F8F4025C; Wed, 4 Sep 2024 23:13:59 +0200 (CEST) Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by mails.dpdk.org (Postfix) with ESMTP id 2FEC340151 for ; Wed, 4 Sep 2024 23:13:57 +0200 (CEST) Received: by mail-pg1-f174.google.com with SMTP id 41be03b00d2f7-7cf5e179b68so49765a12.1 for ; Wed, 04 Sep 2024 14:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1725484436; x=1726089236; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=w93/5luOtOCGPGBSrDWeTcaUKWwDDwT/amxAsdk29uc=; b=XusZDb5RQEqdXp4c3jPUoZaequp6VN6SUO5V9Sn+vRtWxtiQM33soWbIUsquhChjuF /XjX25t+VIoBHRGU9zBNRvpOx6quNFGT6BeLcKgitsCq0A2hLh5P9VDcdIQl81uLQ5no 5d4LnPRbwInjXqK4wNuO4q7KdxqeaegFvU5uA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725484436; x=1726089236; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=w93/5luOtOCGPGBSrDWeTcaUKWwDDwT/amxAsdk29uc=; b=gES1flvTmE05pgmlOIgIxKlD5dzH9/77c5wKvAsJlrySoKGhUrAXbXJ5tGee8oj114 /progdul+P370TPMOa20gNbHxenipaRt8AOT/b/caZSHtIhVRj0aKmFCwaIMZUJ2QBwp 6GPjzEcOo7DQ1D6nDleYqia78fxaA/ULGuq1/1p9pRMLbTUhjb4NT671pgW5vIa78UgJ 7vrKUiCi9smtFJE7OmQIEJpEqH43i6bf+Sw9guHKtLLQL3+TGTZlr5o2ZT9+l/OtHdT9 T4HBczSKLsrtv+aLullQiklp70DT4jKEcRh/fvng9KYUQaqrzaNFfRug0DWFiJonZZtb 8+eQ== X-Forwarded-Encrypted: i=1; AJvYcCV1+OANZqrCC8LYNxZTArODijfFR4BkpTDyRz8+HhLWkviQgFrEPs1NO4K/r4GmD1Kq6jI=@dpdk.org X-Gm-Message-State: AOJu0YxmqRENE9g1Q7E4ltkRd04fKvqz1r0Rhk4+AhOtyaAqkyHAmDF1 G3hh11OOj0XuibezjXSgX5Nb1bvnu3zz+QbnGh8fY3B2SkLpTkQhq34Yn2Veuwqw8TnhyXtEWA4 wDaxRWl68ORbxIS0gbFfM6Z9SaBcBPAiDHnqxIQ== X-Google-Smtp-Source: AGHT+IEx69GYAsgEOT6pUzExGhH27WLDhqFa7/CkCS2U8vgL/WMI7jp3fVhgUmqitBjRaxjpyjucLp0xo5mOABCGwZc= X-Received: by 2002:a17:902:f54f:b0:206:b618:1d96 with SMTP id d9443c01a7336-206b7b79853mr63514565ad.0.1725484436014; Wed, 04 Sep 2024 14:13:56 -0700 (PDT) MIME-Version: 1.0 References: <20240726163915.19277-2-npratte@iol.unh.edu> <20240726164602.25519-1-npratte@iol.unh.edu> In-Reply-To: <20240726164602.25519-1-npratte@iol.unh.edu> From: Dean Marx Date: Wed, 4 Sep 2024 17:14:06 -0400 Message-ID: Subject: Re: [PATCH v4 2/2] dts: mac filter test suite refactored for new dts To: Nicholas Pratte Cc: probb@iol.unh.edu, jspewock@iol.unh.edu, luca.vizzarro@arm.com, yoan.picchi@foss.arm.com, Honnappa.Nagarahalli@arm.com, paul.szczepanek@arm.com, juraj.linkes@pantheon.tech, dev@dpdk.org Content-Type: multipart/alternative; boundary="000000000000dfe517062151a6f0" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --000000000000dfe517062151a6f0 Content-Type: text/plain; charset="UTF-8" > > > + if should_receive: > + self.verify(len(received_packets) == 1, "Expected packet not > received") > + else: > + self.verify(len(received_packets) == 0, "Expected packet > received") > Side note, didn't notice until I tested it but "Expected packet received" doesn't really make sense as an error message --000000000000dfe517062151a6f0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
<snip>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 if should_receive:
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 self.verify(len(received_packets= ) =3D=3D 1, "Expected packet not received")
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 else:
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 self.verify(len(received_packets= ) =3D=3D 0, "Expected packet received")

=
Side note, didn't notice until I tested it but "Expecte= d packet received" doesn't really make sense as an error message
--000000000000dfe517062151a6f0--