From patchwork Sat Jul 22 00:36:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mirsad Todorovac X-Patchwork-Id: 13322666 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F0FEC001DF for ; Sat, 22 Jul 2023 00:37:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231293AbjGVAhb (ORCPT ); Fri, 21 Jul 2023 20:37:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231251AbjGVAh2 (ORCPT ); Fri, 21 Jul 2023 20:37:28 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [161.53.235.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F245E35AC; 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 461976018D; 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=GyTx+in0QuEFu64I6/v5X/cdAZdpOWmLIok82+GgJl4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m57OF3cEwRXSUI+sZv3oBxK91/5ZhUthMvF/Jujj5s4mKzjmIweTiIcgoBcfRkdsL ooFcUlVsWOltfOp9Y+d3Kg6++guHNP8N2KZcNGa9C/jAGwb8tYFsGRLEhtkI4eb1WA V+pZ40ceSK6fu62R24iVN7wwQDymQDimeNTA5KyWEd50PPgyfJXckTA1qr1mx7a9kb 6r5YiA9Dsnet9UiBZT+Oc1Dx1Vh+5G23OQHVTnM41IppZdMAq5jqJn1yD6xVGLHrxm CAIq2RWeUowD682IZ2v7ulBpXzxrDUuLtfsI0mp37Zy426xEr0cS7O0ZRvO23m2lEd YKzs6ADinwjTw== 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 plxVHBFTzZ2k; 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 246816015F; 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=GyTx+in0QuEFu64I6/v5X/cdAZdpOWmLIok82+GgJl4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yOcoyZ5LT17jGebiILXBb4YY/in8ro87VP97TSC7RjcJfn6GIkQ82e1V7ZtVBvL+Y DohthD1Rh2+inXFdmA/3sk+hRu++i1ONjVurkltvmsZYkn1vz+6Ofk64E2WsTDP2v2 uFX7zQNOIwcRuQvzygfECoXt3EbQpP2gopSPURlevv/R9YvktPSi2mVimpo7DScKNF MpktvnmOoRF/jvWWBke0SKM6ASpiSNJ+SDN77sYbNiH6ll9iXYNKf3RHWp9fOOYCl6 iTJFm130YbV6NeQ2Tvq4seFgRA+Jxt2KjkZTVWOQmW0v9awjZ8ywLvDvyck186oZTv FVAT8Gi84s1ug== 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 , Stephen Suryaputra Subject: [PATCH v1 03/11] selftests: forwarding: gre_inner_v4_multipath.sh: add cleanup for SIGTERM sent by timeout Date: Sat, 22 Jul 2023 02:36:02 +0200 Message-Id: <20230722003609.380549-3-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 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@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: 2800f2485417a ("selftests: forwarding: Test multipath hashing on inner IP pkts for GRE tunnel") Cc: Stephen Suryaputra Cc: Ido Schimmel Cc: netdev@vger.kernel.org --- .../testing/selftests/net/forwarding/gre_inner_v4_multipath.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/gre_inner_v4_multipath.sh b/tools/testing/selftests/net/forwarding/gre_inner_v4_multipath.sh index e4009f658003..3b2941b9e89b 100755 --- a/tools/testing/selftests/net/forwarding/gre_inner_v4_multipath.sh +++ b/tools/testing/selftests/net/forwarding/gre_inner_v4_multipath.sh @@ -296,7 +296,7 @@ multipath_ipv4() multipath4_test "Weighted MP 11:45" 11 45 } -trap cleanup EXIT +trap cleanup INT TERM EXIT setup_prepare setup_wait