[v1,08/11] selftests: forwarding: no_forwarding.sh: add cleanup for SIGTERM sent by timeout
Message ID | 20230722003609.380549-8-mirsad.todorovac@alu.unizg.hr |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp553226vqg; Fri, 21 Jul 2023 18:02:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlFNkaDzaP6oOaCQCoZWWCqE2VN6Z3aK0UxSwWndRdtI6dWCTPUEAtPzMZy5tu1KW0CXr9Fg X-Received: by 2002:a17:906:208d:b0:999:26d3:b815 with SMTP id 13-20020a170906208d00b0099926d3b815mr3092783ejq.64.1689987768093; Fri, 21 Jul 2023 18:02:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689987768; cv=none; d=google.com; s=arc-20160816; b=u1ONd6uQNctkj6QsiNl6YwAAYrAj+9CNgFIjONaSM3opKOsyEvvY50D0y2tBVEXtuJ LgMky/NtOFrRXne4Xg9jTgluY5ndx270VHwzmk1Q+SfXI5A8J62FEBrPWUGPg+m6UuLT JHvX7rGHwWvXReXoQdrLVmvbiuBqPsHTSxe0xCsRWj+m6GBpPY+lRPWg5w6/v7cmj57i Rh8JOmWBI2uuZu+6tzL2jk1JOXVUoYY4DJVeyF08sR7Q3OsxYAs12u9imMqJNHPvsdy9 jTsGbkbsE2zTTcH3QSM/CpDxMmd4/bvmLb357FBfALYIRUd2tIt1zboBgyW7v+CJDpBT 2TVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=a0ow7Np2IyYCTH94/scP92nDfcI16NF1ncd0yyE0opY=; fh=9Ti7kAqXw+Ygde3jVsQg72gmjUIkvhs2JRRbLoAPe6o=; b=KysPktBq+NSlW54oN79nsYM67EdoAvpiOkPJw5ysEwJIx+y/UAle2FBEuVkxHV9op8 JwTY91r33bsouHiWTgyBpJ4NcCYkYBlW8Jd4kwSv9kmeviu1Kr3u9ClA+bZZdBWhQsuA S262+jFjkpmKA1Zh3EWuB8+NOevZucY4reFqNzUCxVRmf9nxjs6w3y2B4Y5n/nPdZqOG 3H96A0dLThw5Lg8omCbxeSZBZbbXbzfy5Xkzwl1I4/q4q3/voFeoasjX1tSlo1ULwA0e /QA1TTVw0WkQx1vqS8IawPmas0BOlYoY0LHYwWbWFDT0qLaRyyc+qhvKmXmcR+4xC/Zr RNSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=0gAN3W35; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=dWoEkSWW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xa5-20020a170907b9c500b00993949aad30si3136997ejc.37.2023.07.21.18.02.24; Fri, 21 Jul 2023 18:02:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=0gAN3W35; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=dWoEkSWW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231364AbjGVAhr (ORCPT <rfc822;assdfgzxcv4@gmail.com> + 99 others); Fri, 21 Jul 2023 20:37:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231286AbjGVAha (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 21 Jul 2023 20:37:30 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [161.53.235.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5A283C13; Fri, 21 Jul 2023 17:37:26 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 8601E6017F; Sat, 22 Jul 2023 02:37:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986245; bh=pTPk5QVJQzy4beH8ZuTqLRthaCgM62PmnWjd63M9UV8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0gAN3W35FU0YoUJaDkx6ltr9K5vnKfLaV9/25bnRwbqBaN2Y27AZ/HD5Wqd2Ul1Mf rhE+BDCI+iqSJqydmp+GFmViBwi1Pk9CFZdIlOoRhpERqAWWWgKpD83fqdD/m9Pt0o htBHCy4ZI2jWJztgw+LmgyhIvvfybK5E9ipW2Do+gqP/QRT3JVsKPgpIbVNstoY46Q VN8HAN7HF7npa2SkPPvNgod9MxZRYHdUOLmRxe9Y02IVnTC0lZJfHj8TYykwFGPvSo oU1cC2RPctXdHynJRrJQ3RiJu0fCstfr/KXNXS7w6xs2W7vZiXpvYL6/qVmuqMHk+u wWAQdz7q/lX1A== X-Virus-Scanned: Debian amavisd-new at domac.alu.hr Received: from domac.alu.hr ([127.0.0.1]) by localhost (domac.alu.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k8aBC5yL3xMl; Sat, 22 Jul 2023 02:37:23 +0200 (CEST) Received: from defiant.. (unknown [94.250.191.183]) by domac.alu.hr (Postfix) with ESMTPSA id 68C3A60182; Sat, 22 Jul 2023 02:37:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986239; bh=pTPk5QVJQzy4beH8ZuTqLRthaCgM62PmnWjd63M9UV8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dWoEkSWWwGtCwM7ho0noxsldMed1jWELG2CyVEaX8Dd6Ohfc7naN320ryGCXWo++u z/vw5GA1+TN7HIyrXWwzX5rIWApMPu9uN2Ew1uqz44tFsgWG1sjOIq7jnuV5KX/H+o x3juthC2hll+VytPM9mdG3GHj02O8YWxo8CxZgY/8qPG4K0GqldFxyteZlgXIfqHlp 9wvxR5cEr4SP/bYccsU9Er2q0dqH51fOFbJvLQJ5Jh9a1KyThMzPWBIQi2v/2Q+aoL kX8o4IxbtO/ZQWcOVoqAwVRssTKZpD3haM2z99BBogcMg6EgdUO0c2SyWVd+xD7O2x yOzsWUfNhYUVA== From: Mirsad Todorovac <mirsad.todorovac@alu.unizg.hr> To: Ido Schimmel <idosch@nvidia.com>, "GitAuthor: Mirsad Todorovac" <mirsad.todorovac@alu.unizg.hr>, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Shuah Khan <shuah@kernel.org>, Vladimir Oltean <vladimir.oltean@nxp.com> Subject: [PATCH v1 08/11] selftests: forwarding: no_forwarding.sh: add cleanup for SIGTERM sent by timeout Date: Sat, 22 Jul 2023 02:36:07 +0200 Message-Id: <20230722003609.380549-8-mirsad.todorovac@alu.unizg.hr> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> References: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772080613981761305 X-GMAIL-MSGID: 1772080613981761305 |
Series |
[v1,01/11] selftests: forwarding: custom_multipath_hash.sh: add cleanup for SIGTERM sent by timeout
|
|
Commit Message
Mirsad Todorovac
July 22, 2023, 12:36 a.m. UTC
Add trap and cleanup for SIGTERM sent by timeout and SIGINT from keyboard, for the test times out and leaves incoherent network stack. Fixes: 476a4f05d9b83 ("selftests: forwarding: add a no_forwarding.sh test") Cc: Vladimir Oltean <vladimir.oltean@nxp.com> Cc: Ido Schimmel <idosch@nvidia.com> Cc: netdev@vger.kernel.org --- tools/testing/selftests/net/forwarding/no_forwarding.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/net/forwarding/no_forwarding.sh b/tools/testing/selftests/net/forwarding/no_forwarding.sh index af3b398d13f0..f748954aa1cc 100755 --- a/tools/testing/selftests/net/forwarding/no_forwarding.sh +++ b/tools/testing/selftests/net/forwarding/no_forwarding.sh @@ -251,7 +251,7 @@ setup_prepare() ip link set dev $swp2 up } -trap cleanup EXIT +trap cleanup INT TERM EXIT setup_prepare setup_wait