Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp8180434ybc; Fri, 29 Nov 2019 06:41:33 -0800 (PST) X-Google-Smtp-Source: APXvYqxzX/ezqfvpjxKzfUOlr0QknK6Xg91UH4DCp8OY3xRpK7Bti88mYK/unTotyFWPp6MAXVXe X-Received: by 2002:a50:f292:: with SMTP id f18mr19763704edm.169.1575038493646; Fri, 29 Nov 2019 06:41:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575038493; cv=none; d=google.com; s=arc-20160816; b=OEo6mIEbTUL3PeVJOLJkJtGWDWIiRGi/ejiGbRixhEHngYe5hVewS/fWtSq2aGFa1d 2UCqDS3tq/84bgvQ1UOvehN4UZ6kwHFSKPe9kdG5HsJcdFo9DBwLgSWrPq2b4CGOs002 D8vWNOWSluNMhaw2zgxwB1y4qnFoJ6F92R8hGQ4dnxypFlb5NmQrHFOwg6SRxFtFxf4a 7xGM/RvGsx8jWNqf1Mfu3FvCZkRICO/1AlV6DKusuSbgu6EKNIG+iD3bEUXk1s14Cqrg uAKrNuuZ8i5W+VoQH+CZaG+VITV0dQaiWc9hUfsCJw/mpfPbcF5gavFntTGemzXLYU2y ZQ6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=FfyXChrBe1vZ1PcTn0iTJTc7p7Xm2eml7LrBbaxtCas=; b=a2qcCy9G8MmptLSS0vR9M8oVbhwLWPBR8YrmDFo8IjrxUW6JpED/fN5PfHoxnBLp/p 13QXXvBqMV20sHyg5PAjKEmzvsEinbEuG2qqLBjt13w5EwOt+tSBK/mgTaX2JPpHD+wK mNGK5jPadcAa5cDddxGGuBB27UsZpZBeztLPR4U32UYD2yhcunBtG/7N+r+YyNba6FnP 8aDNPxVscqZ5js0e7b0keQea3SfIAsAXA5IehdRcXyL6WqK98UO4lS6x2Gz5x2CK+nNn OfiwnIkDzTZPzgQkOBY/6hBCJfy22lQce15Iyg79OeZAbp/Ip378AEZrKVcXjNV6FDp5 c/Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="elg/vqNg"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pv14si14100612ejb.285.2019.11.29.06.41.07; Fri, 29 Nov 2019 06:41:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="elg/vqNg"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726990AbfK2Oj5 (ORCPT + 99 others); Fri, 29 Nov 2019 09:39:57 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:46475 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726902AbfK2Oj5 (ORCPT ); Fri, 29 Nov 2019 09:39:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575038396; 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=FfyXChrBe1vZ1PcTn0iTJTc7p7Xm2eml7LrBbaxtCas=; b=elg/vqNgJ+rb/wtIyZZ85hW+vYZrqHnSjleBcfJjlNs696glr/7Z5LWjWnSMHPnCtCQFM/ dj7UWfAu49NarHZH8UN5YBH5HeFvwaTXN++o99lr+l8DDhhH8Rf+ksb3Gs7qzX7UaQ86oP iQ0+rr19Q4qIj8vgxfnYH8qTh6s3v5w= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-43-frV0228iPLGX0XOTTtzT5g-1; Fri, 29 Nov 2019 09:39:55 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A06A9800D41; Fri, 29 Nov 2019 14:39:53 +0000 (UTC) Received: from elisabeth (ovpn-200-40.brq.redhat.com [10.40.200.40]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 939A4600C8; Fri, 29 Nov 2019 14:39:51 +0000 (UTC) Date: Fri, 29 Nov 2019 15:39:45 +0100 From: Stefano Brivio To: Thadeu Lima de Souza Cascardo Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, shuah@kernel.org, davem@davemloft.net Subject: Re: [PATCH] selftests: pmtu: use -oneline for ip route list cache Message-ID: <20191129153945.03836fea@elisabeth> In-Reply-To: <20191128185806.23706-1-cascardo@canonical.com> References: <20191128185806.23706-1-cascardo@canonical.com> Organization: Red Hat MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: frV0228iPLGX0XOTTtzT5g-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, 28 Nov 2019 15:58:06 -0300 Thadeu Lima de Souza Cascardo wrote: > Some versions of iproute2 will output more than one line per entry, which > will cause the test to fail, like: > > TEST: ipv6: list and flush cached exceptions [FAIL] > can't list cached exceptions > > That happens, for example, with iproute2 4.15.0. When using the -oneline > option, this will work just fine: > > TEST: ipv6: list and flush cached exceptions [ OK ] > > This also works just fine with a more recent version of iproute2, like > 5.4.0. > > For some reason, two lines are printed for the IPv4 test no matter what > version of iproute2 is used. Use the same -oneline parameter there instead > of counting the lines twice. Thanks, it looks definitely more robust this way. Fixes: b964641e9925 ("selftests: pmtu: Make list_flush_ipv6_exception test more demanding") > Signed-off-by: Thadeu Lima de Souza Cascardo Acked-by: Stefano Brivio -- Stefano