Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp583550rwo; Fri, 21 Jul 2023 17:45:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlHIrFjzPXKJO/IermJoUd/1JCTQ7PHppAFpbB3RUubTGaJj4ros9YiuSp4yO1NW3Y5wK7oT X-Received: by 2002:aa7:d34e:0:b0:51e:fa7:a292 with SMTP id m14-20020aa7d34e000000b0051e0fa7a292mr2572674edr.12.1689986699547; Fri, 21 Jul 2023 17:44:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689986699; cv=none; d=google.com; s=arc-20160816; b=VpdeJFQ4pMbHBOTyNjNnIJzzkCQFt0+kEGuUQ5zdVu/t3R3U6Ip3NfgaeM3bD21aoj II8TvM96Dd6BBJo3aEjyobsT/wsXEYzMv/N3i4X6CyopbZzocXDTYlIUYvgzvT11RFXU LFiloMbDH0baJPsnBhc+InBvfCzb7Movm8GbWOVI+vSArglLZqenCl5snJBqfu6hBvOS Q2fv9t6SpTJ78rATed4cU/ddFji8QZvlUGWjpAY6zsg5XumDXhsksyfg2XkJIaWrdN2k jOPLMHw4K9uyE8j8xGcXvmOIRIC0yepl0dp1DdUHUNACy4kEtDR/wCbMQFZvF7+JCUK7 xkaQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h14-20020aa7de0e000000b0051e0591969dsi2954823edv.345.2023.07.21.17.44.35; Fri, 21 Jul 2023 17:44:59 -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 S231302AbjGVAhg (ORCPT + 99 others); Fri, 21 Jul 2023 20:37:36 -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 ); 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 To: Ido Schimmel , "GitAuthor: Mirsad Todorovac" , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 -- 2.34.1