| Message ID | 20200626082743.15397-1-gert@greenie.muc.de |
|---|---|
| State | Accepted |
| Headers |
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net> Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director10.mail.ord1d.rsapps.net ([172.30.191.6]) by backend30.mail.ord1d.rsapps.net with LMTP id UGgkAM+x9V6GcAAAIUCqbw for <patchwork@openvpn.net>; Fri, 26 Jun 2020 04:29:03 -0400 Received: from proxy13.mail.ord1d.rsapps.net ([172.30.191.6]) by director10.mail.ord1d.rsapps.net with LMTP id eJ+JO86x9V4jRAAApN4f7A ; Fri, 26 Jun 2020 04:29:03 -0400 Received: from smtp1.gate.ord1d ([172.30.191.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy13.mail.ord1d.rsapps.net with LMTP id EKFUO86x9V5FRwAAgjf6aA ; Fri, 26 Jun 2020 04:29:02 -0400 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: openvpnslackdevel@openvpn.net X-Originating-Ip: [216.105.38.7] Authentication-Results: smtp1.gate.ord1d.rsapps.net; iprev=pass policy.iprev="216.105.38.7"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dmarc=none (p=nil; dis=none) header.from=greenie.muc.de X-Suspicious-Flag: YES X-Classification-ID: 16431156-b787-11ea-a59b-5254002d775b-1-1 Received: from [216.105.38.7] ([216.105.38.7:33014] helo=lists.sourceforge.net) by smtp1.gate.ord1d.rsapps.net (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 6E/E0-09633-DC1B5FE5; Fri, 26 Jun 2020 04:29:01 -0400 Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) id 1jojiP-0004Av-4I; Fri, 26 Jun 2020 08:28:05 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from <gert@gentoo.ov.greenie.net>) id 1jojiN-0004Aj-D3 for openvpn-devel@lists.sourceforge.net; Fri, 26 Jun 2020 08:28:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-Id: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/3o+2h3IuUB/ZH/u8fI7PQHUU12jGCmuknJEFJWdyM8=; b=NdS6Uy3CodBDFN/gONWf/n2qWH TS8c0lKpq6liARNRYUgPdfdZFYF390HsU+4qi72POSqF8UITOJyk7IiyAY+vDQrbbah9IDAzQX7zu lXiYChlGr/IQZcqwBRb5ELClOa8T1YbQchNNUtf1pdFtcliNDC830xhGZWRFdbFBpYFo=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:To:From: Sender:Reply-To:Cc:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=/3o+2h3IuUB/ZH/u8fI7PQHUU12jGCmuknJEFJWdyM8=; b=U TLlfjAgcD9ae6/JTW8C8NHepn2Wzdo7junNCMKyGutP+pQynUWH2UNfU33VRY7kNiLQiQAL47a57F XdH5oJCofNTVeO6ovbm0mCr8t+ZoCeq6cY0Lle9atrqw0rc8efbVGJ2FYdGANUUnCkmGdRGdqL8eW ES0cF9CppoqiZmPk=; Received: from vmail1.greenie.net ([195.30.8.66]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1jojiL-001YiR-0O for openvpn-devel@lists.sourceforge.net; Fri, 26 Jun 2020 08:28:03 +0000 Received: from gentoo.ov.greenie.net (gentoo.ov.greenie.net [IPv6:2001:608:0:814:0:0:f000:11]) by vmail1.greenie.net (8.15.2/8.12.11) with SMTP id 05Q8Rh4n076216 for <openvpn-devel@lists.sourceforge.net>; Fri, 26 Jun 2020 10:27:43 +0200 (CEST) Received: (nullmailer pid 15443 invoked by uid 1000); Fri, 26 Jun 2020 08:27:43 -0000 From: Gert Doering <gert@greenie.muc.de> To: openvpn-devel@lists.sourceforge.net Date: Fri, 26 Jun 2020 10:27:43 +0200 Message-Id: <20200626082743.15397-1-gert@greenie.muc.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (vmail1.greenie.net [IPv6:2001:608:1:995a:20c:29ff:feb8:10eb]); Fri, 26 Jun 2020 10:27:43 +0200 (CEST) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-Headers-End: 1jojiL-001YiR-0O Subject: [Openvpn-devel] [PATCH] t_client.sh: correctly report all failed instances in summary X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: <openvpn-devel.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel> List-Post: <mailto:openvpn-devel@lists.sourceforge.net> List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox |
| Series |
[Openvpn-devel] t_client.sh: correctly report all failed instances in summary
|
|
Commit Message
Gert Doering
June 25, 2020, 10:27 p.m. UTC
t_client.sh reports a summary at the end:
Test sets succeeded: none.
Test sets failed: 1 2 3 4 5.
for tests that are skipped due to the pre-test ping check ("vpn target
IP must not ping before VPN ist started") the script forgot to add
the instance number to the summary line. Fixed.
Signed-off-by: Gert Doering <gert@greenie.muc.de>
---
tests/t_client.sh.in | 1 +
1 file changed, 1 insertion(+)
Comments
Hi, On 26/06/2020 10:27, Gert Doering wrote: > t_client.sh reports a summary at the end: > > Test sets succeeded: none. > Test sets failed: 1 2 3 4 5. > > for tests that are skipped due to the pre-test ping check ("vpn target > IP must not ping before VPN ist started") the script forgot to add > the instance number to the summary line. Fixed. > > Signed-off-by: Gert Doering <gert@greenie.muc.de> Simple enough and pretty clear. This is the only FAIL case where we set the exit code, print a message, but don't append the test to the SUMMARY_FAIL. This is fixed now. I can't easily come up with a t_client instance that verifies this failure, but I trust Gert to have done so after having spotted the issue. Acked-by: Antonio Quartulli <a@unstable.cc>
Hi, On Fri, Jul 03, 2020 at 07:11:04PM +0200, Antonio Quartulli wrote: > On 26/06/2020 10:27, Gert Doering wrote: > > t_client.sh reports a summary at the end: > > > > Test sets succeeded: none. > > Test sets failed: 1 2 3 4 5. [..] > I can't easily come up with a t_client instance that verifies this > failure, but I trust Gert to have done so after having spotted the issue. Actually I was wondering why my failed tests did not show up in the summary in some cases :-) - so I had the perfect test case up front. (How to reproduce is easy: just run one of the test VPN instances manually before starting t_client.sh - it will fail all/most of the test due to "these addresse must not ping before we start openvpn!") gert
Patch has been applied to the master branch.
commit ec33bae311e7f3549b05de4a4c92fa7bc7144d29
Author: Gert Doering
Date: Fri Jun 26 10:27:43 2020 +0200
t_client.sh: correctly report all failed instances in summary
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <20200626082743.15397-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg20130.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
--
kind regards,
Gert Doering
diff --git a/tests/t_client.sh.in b/tests/t_client.sh.in index 69866fb5..294546be 100755 --- a/tests/t_client.sh.in +++ b/tests/t_client.sh.in @@ -298,6 +298,7 @@ do echo -e "OK.\n" else echo -e "FAIL: make sure that ping hosts are ONLY reachable via VPN, SKIP test $SUF". + SUMMARY_FAIL="$SUMMARY_FAIL $SUF" exit_code=31 continue fi