From patchwork Mon Nov 30 10:43:13 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gert Doering X-Patchwork-Id: 5819 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:6022:91c9:10b0:11b:d6c:f273 with SMTP id tl9-n1csp12669016lad; Mon, 30 Nov 2026 02:43:30 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErHsm0xt0jk/pVS/anBm6fDcX1z6Yodsn88qYN2xDN1Kw74zbw9oobt6VKJyKKDMLnFhUbw3CUr7KdY=@openvpn.net X-Received: by 2002:a05:693c:8083:b0:376:6530:248f with SMTP id 5a478bee46e88-38570a3717dmr38344278eec.24.1796035410007; Mon, 30 Nov 2026 02:43:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1796035410; cv=none; d=google.com; s=arc-20260327; b=oK18ZY4yBRAIW33Q48eR1jrECcEct5AIcDwCn5IhgfvvHf3FXoD8Uc3/ZndCYcV/7p Lzen1WnBSdJBYtkwHcSRH4cD2izJRjNuu69KABYTHjb3tqGk1+Su0Yam0Ccv9Qcv55TQ BdeU+VaKkaP/O0Xf14uMEFdUtYbo2jT6bQ45C8omLQLwrY/EIGSdVfXWT1V7VZVCjXiv n/I508Woy1YA2cFzUecQmhUDAdRv07yNZSJWpcQmIEMj5Klagw6QZW7A5/ZXblnVu6RU fAgYXgp9uNSAZ83pEuOrZfJGrmSqOuX5kJQu8PdE7NlWrNt0OfhidJ7qD3pUQgilvgz7 YSpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:dkim-signature:dkim-signature; bh=CHCt07mrSNyWmFIMHDDWJBiNIynv0yjpC5EhkoVnXFg=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=as2BWv0jpzzx/qj0u7Y0Gyu6pyXvPbT7yWmf7KCmYiJwTmaxTfoDcIBwcI1fBJRHm1 Nbpm45hzypl17MqxeuKOUi21iuEBypUy9/hNv3jPkibh6FlcdIU5rCwzRHyaVUPjdlvw b6xWZr+BPT2nqnFd0Rk8AjykISUljURMQOLfWOte7pqLUbpNCK9S716Nz5O2ZtiwtAKM fRVfirP6oaPtwNhDACo/jUcKvcj37um1ptBZr9DmQieggW2OAVIlfLsTmERkz4z0p5Vw MlZ8NY7X3DIShGKb8E9wAdAmMFL+ZCsy2QKJwcPgdGqF+Onoq1nAW494758yIlNxGwkh CoiA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=Mf7f28Su; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=JgsGUZvR; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=VZS5bScU; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7]) by mx.google.com with ESMTPS id 5a478bee46e88-38566fd6cffsi119516866eec.22.2026.11.30.02.43.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Nov 2026 02:43:29 -0800 (PST) Received-SPF: pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) client-ip=216.105.38.7; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=Mf7f28Su; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=JgsGUZvR; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=VZS5bScU; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Subject:MIME-Version:References:In-Reply-To:Message-ID:Date:To:From:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=CHCt07mrSNyWmFIMHDDWJBiNIynv0yjpC5EhkoVnXFg=; b=Mf7f28Suy6Lwvh wqu42I42etTk1q+Pf9oWP9sRluwxwWKq4s/zDj9n7g+VVXKKoJcN28gXz65nPgnRd49puiQixdZyZ pFFILDWfCWfxn58iHKN9iwPpgHDKlPvGCMxr++qPM18qbk/JSrD99iyG5VZbd/H3MCAr3DmSVqglf fDo=; Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.100.1) (envelope-from ) id 1xXyr2-000000001kq-3cpJ; Mon, 30 Nov 2026 10:43:28 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xXyr1-000000001kf-3ggS for openvpn-devel@lists.sourceforge.net; Mon, 30 Nov 2026 10:43:27 +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:References: In-Reply-To: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:List-Id:List-Help:List-Unsubscribe: List-Unsubscribe-Post:List-Subscribe:List-Post:List-Owner:List-Archive; bh=50Z9/YAjrhcUE4u9RAoRgL3ZWVgzty98LTXiRBEht/s=; b=JgsGUZvRaO/6rU3ZluJo6F+2Gv opZ+TW4zU03Zunn5Zrto3K0SMcPSMSBWauGjfvwSzoOJI/5SoBa9teugcJFK02Q9SK3I5dferkz51 WyB8Lyklpk2HaznRLEou3bi05PR5sT29dcCpVZMpTqbLWzfshx5bljn0MEZvDfsa+Gd8=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: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:List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post: List-Subscribe:List-Post:List-Owner:List-Archive; bh=50Z9/YAjrhcUE4u9RAoRgL3ZWVgzty98LTXiRBEht/s=; b=VZS5bScUPhv3ldGau0i39I9RdZ nGrr7PQWqbGds9FLx0F+P9wO0K6RG+fEMgNj9FNP80VrZUQHSK3Aob/8Yu+VuHfHKhN6Oxeq24jo3 fi+PQowCV2ZBrzzt12AoJAlxlkISMafKXO0d72SQuXfVhaRlogshdK/MKtPxM1XGS6dM=; Received: from [193.149.48.129] (helo=blue.greenie.muc.de) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.100.1) id 1xXyqz-000000002TW-427m for openvpn-devel@lists.sourceforge.net; Mon, 30 Nov 2026 10:43:27 +0000 Received: from blue.greenie.muc.de (localhost [127.0.0.1]) by blue.greenie.muc.de (8.18.1/8.18.1) with ESMTP id 6AUAhJqe021439 for ; Mon, 30 Nov 2026 11:43:19 +0100 Received: (from gert@localhost) by blue.greenie.muc.de (8.18.2/8.18.1/Submit) id 6AUAhJBG021438 for openvpn-devel@lists.sourceforge.net; Mon, 30 Nov 2026 11:43:19 +0100 From: Gert Doering To: openvpn-devel@lists.sourceforge.net Date: Mon, 30 Nov 2026 11:43:13 +0100 Message-ID: <20261130104318.21428-1-gert@greenie.muc.de> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "sfi-spamd-2.hosts.colo.sdot.me", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Razvan Cojocaru Fail only the affected test run instead of exiting the script. Before openvpn starts, skip the run and clean up. While it runs, record the failure and carry on. Drop the post-openvpn check: anything l [...] Content analysis details: (1.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Headers-End: 1xXyqz-000000002TW-427m Subject: [Openvpn-devel] [PATCH v2] t_client: don't abort the script on a stuck tentative state X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: 1883279626472396545 X-GMAIL-MSGID: 1883279626472396545 From: Razvan Cojocaru Fail only the affected test run instead of exiting the script. Before openvpn starts, skip the run and clean up. While it runs, record the failure and carry on. Drop the post-openvpn check: anything left over from openvpn already fails the pre/post comparison. Github: closes OpenVPN/openvpn#1161 Change-Id: Ie62221eb8256a6691e4fccaef2e1eb0e8f49c835 Signed-off-by: Razvan Cojocaru Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2372 --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2372 This mail reflects revision 2 of this Change. Acked-by according to Gerrit (reflected above): Gert Doering diff --git a/tests/t_client.sh.in b/tests/t_client.sh.in index d81cef0..4037d5a 100755 --- a/tests/t_client.sh.in +++ b/tests/t_client.sh.in @@ -265,7 +265,7 @@ # ---------------------------------------------------------- # check ifconfig output on whether some address is in "tentative" state -# repeats calling get_ifconfig_route until it does not +# repeats calling get_ifconfig_route until it does not, fails after 30s # arg1: log file check_tentative_state() { @@ -414,8 +414,15 @@ output "save pre-openvpn ifconfig + route" get_ifconfig_route >$LOGDIR/$SUF:ifconfig_route_pre.txt if ! check_tentative_state $LOGDIR/$SUF:ifconfig_route_pre.txt; then + output "skip rest of sub-tests for test run $SUF." + SUMMARY_FAIL="$SUMMARY_FAIL $SUF" + exit_code=30 printf "$outbuf" - exit 1 + if [ -n "$test_cleanup" ]; then + echo "cleaning up: '$test_cleanup'" + eval $test_cleanup + fi + continue fi output "\nrun pre-openvpn ping tests - targets must not be reachable..." @@ -523,10 +530,7 @@ # compare whether anything changed in ifconfig/route setup? output "save ifconfig+route" get_ifconfig_route >$LOGDIR/$SUF:ifconfig_route.txt - if ! check_tentative_state $LOGDIR/$SUF:ifconfig_route.txt; then - printf "$outbuf" - exit 1 - fi + check_tentative_state $LOGDIR/$SUF:ifconfig_route.txt if [ "$expect_ifconfig4" = "-" ]; then output "skip ifconfig+route check" @@ -564,10 +568,6 @@ output "\nsave post-openvpn ifconfig + route..." get_ifconfig_route >$LOGDIR/$SUF:ifconfig_route_post.txt - if ! check_tentative_state $LOGDIR/$SUF:ifconfig_route_post.txt; then - printf "$outbuf" - exit 1 - fi output -n "compare pre- and post-openvpn ifconfig + route..." if diff $LOGDIR/$SUF:ifconfig_route_pre.txt \