[v1,05/11] selftests: forwarding: gre_multipath_nh.sh: add cleanup for SIGTERM sent by timeout
Message ID | 20230722003609.380549-5-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 l16csp560824vqg; Fri, 21 Jul 2023 18:24:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlFM69K5GhnDHdWfGkWCfVkq2imYVaUq/dNIRhU94Rzsmc/ULKGhQV7tjICn5Ym0fRWHgevI X-Received: by 2002:a05:6a00:2290:b0:668:8493:2545 with SMTP id f16-20020a056a00229000b0066884932545mr1637934pfe.24.1689989058266; Fri, 21 Jul 2023 18:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689989058; cv=none; d=google.com; s=arc-20160816; b=zCXm/MWW+LglzZ2ttoMH/fT9GG5lotfBdPMY8C0GdzzsR9bfmmKMOG5rC7rvRtqLS0 79kYkFrfbV7L0DfyQ8KKd4zMvRssrIKwXPUTITaSX53ZgIjYn58c52vjnvju1xWsumxj Cog84VcvdBF9X8lnez2C7vaWUlNnjcNLZOJLooycmHR+FOV5u1QINAU6CB43ACK5VTb8 LGO6bUYddnCNrsKY45B5DrAz8MIJCll4YqMpbQouDqsw++8zXAyZQR/VJ6W9xXxvfCh9 Knz7tIA76y+axfhwZajeu31xCfS8kt0zYVUe6Vn78iWS9Yn3qpu6El8sKM2BK4EGNzu5 14tA== 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=yMkPRdkCFStmGBhtbNFkc8Lk+klJYKaJBwIMlnFokXo=; fh=+RLa/lR/Y4Ewu083Dn92qlquCcVI+eAd0l+/UvctN2M=; b=Z1LOL8JvIfXr+Mg+9Ftlp2/nsEY3mg3StqLbIE2cg1XpycsFMYfxSfsTAIVvLkLy4v /XlngHmZUFCAc0/dleAr59OUwAPJYloa8Ehl3t1/Pze7f5bNuMCQNy793T87kazLfRLT t2krd3g79wktbXXARLwmywePySS+glNr/uuCFb5V61ScF55xFCgraHCxot9IPXuohG8y PW0yjg53O2ZoqyBrqKS6LkFzB4ppO/fuZkXDsI49lSQ2OJA6lNAO47x1I3dhWz83AtGY G1IOnZGqcUFb9ld1ljp7I+YyAF5x3aqHhJj5G5Tjoo1kVUVtR2gp2HWz8GNrR5pcyd0Y IOhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=b5gOO2Q9; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=dOy9XdPh; 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 g185-20020a636bc2000000b00543ad7aa643si3796027pgc.815.2023.07.21.18.24.05; Fri, 21 Jul 2023 18:24:18 -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=b5gOO2Q9; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=dOy9XdPh; 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 S231303AbjGVAhh (ORCPT <rfc822;assdfgzxcv4@gmail.com> + 99 others); Fri, 21 Jul 2023 20:37:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229861AbjGVAh3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 21 Jul 2023 20:37:29 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [161.53.235.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A046A3A92; Fri, 21 Jul 2023 17:37:24 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 5D9066016E; Sat, 22 Jul 2023 02:37:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986243; bh=7W3ynW0vvotn+/mE5zS4UF/4GcS0BEQbaUjU76Bkz1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b5gOO2Q9p7k87Wp9EEjtvpQQWxYc0wAjuibY4frrWvHjvG1UCZTJ7EFBEDrz2RxXI S9i2ZkUmaSkdeNcCr6iiCBvoSmT01WadWGy/RyjLTHyyGWdB9eqHZZT2jbk6s20dO+ 7enGMFNyktcGKpyUiNqjIW8UbtDbQr3NVRQoeoMs3Vtbh5j/XpaAVfWTjd2P0jwAuv p5NrWFWEEofjZQvkEkJTkOyxr8l2pnG+ax5Lt90bvgJ/1Li1AWb8MKxlHZGPnSPSdD AZeYnGfbUJ9N1Xtsh6z2ZhSCLCxvpekChqJdXwyuHMNfP3rrREzn4x83xN0i7i6rsb pWHFmrfbcAyDQ== 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 64sfHafPNM-S; Sat, 22 Jul 2023 02:37:21 +0200 (CEST) Received: from defiant.. (unknown [94.250.191.183]) by domac.alu.hr (Postfix) with ESMTPSA id 42FD660177; 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=7W3ynW0vvotn+/mE5zS4UF/4GcS0BEQbaUjU76Bkz1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dOy9XdPhdOHptX5peyzm3KrhunrfImNtT4XOenc1nyLGcd/AhGbHl4JROIiSLtOT+ nyYt0KoiK6ZM0ZbuQNGSX3qVi2rfoHWDQb5ykDgcdgMB+oz5AXhacAdfif/P618tHJ FYIDLfowL6Wz+mlLLnj/6zKjCAPM0vF7LiHh46Oj3zF5NzCTDJtTQHF4aAEBnK4c2w SrgS1O2mWBVUwBz4q6imxQmCvyOlb9vYS+cHetVLpVDLd7UpTtOZFnt0aG4z2cirDW 53L8kNpGYtr5aIksBtypO4urBA+NwXJXsP/yWARWlTjpqkfoPYThcjxWEzTjVVyLFX rTBuq0GBNWJiw== 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> Subject: [PATCH v1 05/11] selftests: forwarding: gre_multipath_nh.sh: add cleanup for SIGTERM sent by timeout Date: Sat, 22 Jul 2023 02:36:04 +0200 Message-Id: <20230722003609.380549-5-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: 1772081966570269154 X-GMAIL-MSGID: 1772081966570269154 |
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: e035146d65603 ("selftests: forwarding: Add multipath tunneling nexthop test") Cc: Ido Schimmel <idosch@nvidia.com> Cc: netdev@vger.kernel.org --- tools/testing/selftests/net/forwarding/gre_multipath_nh.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/net/forwarding/gre_multipath_nh.sh b/tools/testing/selftests/net/forwarding/gre_multipath_nh.sh index d03aa2cab9fd..8338b8693387 100755 --- a/tools/testing/selftests/net/forwarding/gre_multipath_nh.sh +++ b/tools/testing/selftests/net/forwarding/gre_multipath_nh.sh @@ -347,7 +347,7 @@ multipath_ipv6_l4() multipath6_l4_test "Weighted MP 11:45" 11 45 } -trap cleanup EXIT +trap cleanup INT TERM EXIT setup_prepare setup_wait