Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp581944rwo; Fri, 21 Jul 2023 17:42:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlEhaQ10E5NKkYW9LTGww8NqUCijYKuGzmbShTjkLN4pZM3Yb57JrBA6MZ85nXjdflH2Z9LE X-Received: by 2002:a05:6402:204e:b0:51e:1af0:3a90 with SMTP id bc14-20020a056402204e00b0051e1af03a90mr2715746edb.37.1689986538832; Fri, 21 Jul 2023 17:42:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689986538; cv=none; d=google.com; s=arc-20160816; b=KYoIZuta9KuOlc6MEMfSZQmcfl2Ml4+4aqRagQyWyFqe7i9PiZi5Fp3aZSq1LL07LR RvGCaohuKnfPcjASvsyZLvWlmzwMXv4JaIB0D2lgjcwb5Omc4kh9bZ2T2kOKwcn+YGSH +Nhisz1IC/6Ozzyt16+EB+UZEt7KbUx9QKOcEtnAW+zerSyo/cIet6ovxq8DMpJYBGwD 2/DShR82bxYxkaQ4v+gBLpS6owTrnFUxAJNN55jH4U/dhJHYGL1O9Id/WSKBvS4dNdTb of9E65NExV7R29PB7RK+nttJIuOwWzqelkkVJ4o8ghtHnN4ZS/Uus8ySOl5XDQvd60YV NJ5w== 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=ik356/YjK3VdkPnG/0xCUcil98ABzMGhiijRtxnxYIo=; fh=+RLa/lR/Y4Ewu083Dn92qlquCcVI+eAd0l+/UvctN2M=; b=bFbfZ5NAC03ydfjY+xfHiqislSZ8mmoinZvTQsGzqVBsoaarxiM8GJHsCW8oTz3UUG WGJBJvITFBOssAisFm5j+R2czlnqKbvL1rdlyQ4/hFb8Ujen5yfTp7XfMdau9o5fsd9p hDgkSE0J1Sk7WWCgwkhUMisXD6ChVotb8OGLIhGZUx1MOhIxMZiN1yVTnd/lOoTm/ztw dkw30hfRh/YY6cc9+f4pQNtBAb5LYisPzXnnwi+of7iiwG8RegVjSbgUmuzvLWIVPqaV tBo1Ke/dcnNvGQr0xpxQLC2jFEvTVupIGFUxcIfZ2hMoobdNsR/vE5dbvDP4bOeGQOOU G3xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=MfDNSlaU; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=bN0Huft2; 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 v2-20020a056402184200b0051e23d8b086si2882157edy.267.2023.07.21.17.41.55; Fri, 21 Jul 2023 17:42: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=MfDNSlaU; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=bN0Huft2; 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 S231279AbjGVAha (ORCPT + 99 others); Fri, 21 Jul 2023 20:37:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231245AbjGVAhZ (ORCPT ); Fri, 21 Jul 2023 20:37:25 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [IPv6:2001:b68:2:2800::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D529135AB; Fri, 21 Jul 2023 17:37:22 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 520BB6015F; Sat, 22 Jul 2023 02:37:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986241; bh=Bc0dIUG/XF3GLflgprZ9fOJOZFSZr/NOgaX0ho+Cj8E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MfDNSlaUJsXJ6zY4IWcQDHeJ6wCBFZdlFx8QyQm8Jwjf/odNvPQHc8+zm/ToOzK/Y xxbR/+GlqEtt9LmKmKscUQxHUZU5DVxKlSkUAKZNrAL1XkjLq97bK386wcXJbqAyNZ v9uewOSYiMyXq8dir1+bee1yvtx4eIN7ak9muDrYn7jKwXtOeG64CAx7AjRtO8X61B Jpl6Or0Ps2XxtggyE4Z9Q67MII2dqvl3l/9xLdZrJYGZ6VCN7yelPi4YAuUDoLY/7h B8knHFMaP5r5FJl2FJOxsAFbCl8uGQZ4GUeFBCjnoMITIWBvhPkfV9TLFDZUaDCfYS cfm36jflKDwBA== 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 MvLS1Q3DjMCb; Sat, 22 Jul 2023 02:37:19 +0200 (CEST) Received: from defiant.. (unknown [94.250.191.183]) by domac.alu.hr (Postfix) with ESMTPSA id 33E0960171; 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=Bc0dIUG/XF3GLflgprZ9fOJOZFSZr/NOgaX0ho+Cj8E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bN0Huft29JSlT6o255gAqANu1pKkw9Ur3Ecin+WVVnr0CPlq8zm7SpFhMk3fIJmCI BlbbEMnz3mZBKRFJDSDoWhoCPpmS6C0gW+iWoTvDU0qC6tY5qAQ2e+TJKmp07DFhQx 8N5G9TWyZAgtWFftFN+/fQNkBNjGp1O3MveE+prUi8zqwul5RtHUFVlr9o86cxLlNd b3av7367F9cezDPOuYBYrwebHScDcQXcmLO3h3UMBy9RV+MugXtNBPlvOX3oDydWc4 hv2e7JusywHbzLEcbQbBnzbFjTiQXAapkdU9lBWMmqGV6gujkJkec/2k4Y/zZ5Guof qdJq0/Umd1c/w== 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 04/11] selftests: forwarding: gre_multipath_nh_res.sh: add cleanup for SIGTERM sent by timeout Date: Sat, 22 Jul 2023 02:36:03 +0200 Message-Id: <20230722003609.380549-4-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: 902280cacc036 ("selftests: forwarding: Add resilient multipath tunneling nexthop test") Cc: Ido Schimmel Cc: netdev@vger.kernel.org --- tools/testing/selftests/net/forwarding/gre_multipath_nh_res.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/gre_multipath_nh_res.sh b/tools/testing/selftests/net/forwarding/gre_multipath_nh_res.sh index 088b65e64d66..83032c165c65 100755 --- a/tools/testing/selftests/net/forwarding/gre_multipath_nh_res.sh +++ b/tools/testing/selftests/net/forwarding/gre_multipath_nh_res.sh @@ -352,7 +352,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