Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp608974rwo; Fri, 21 Jul 2023 18:21:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlHQ5x91LHNqxYm/9lPnEJPMFUyVkEvAqL2A9vYwjmuoaBaVbV2rSjlfLo/bXxyDwUSIvnr1 X-Received: by 2002:a17:906:3f5d:b0:99b:6e54:bd6e with SMTP id f29-20020a1709063f5d00b0099b6e54bd6emr2003354ejj.56.1689988860921; Fri, 21 Jul 2023 18:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689988860; cv=none; d=google.com; s=arc-20160816; b=vcpSSoZI7YDqdc0QtI/57BNU4EYLJPAtbuN0Ow/b8ztfgw9mUkkkXU8TdDdwgcP//t I469HY/BsNTGOn19pAGN4RBp4zd8I9FZYFTrDGXRmt8DuRD6EQhrJqfU7yAYJkO+BDHV DKgmMi7JObJd16AE4hvcdiW5Eh+UZuP2CSfUcwZJeIgDrvfzdrZmvyO4LH0LjBHD5yTO y5Tr3liP6tKkL6b16PSKM+fyP/yDrNInCC2c5xDH1y4uxwPXeyyxCYAS94vL7zw//AlZ DKEf+5zROpROZQHGWwciGJczM4+wYb2AiO5JtbKJGqyls1iTOdpgfJ2BNN+0+SseR48V q/Dg== 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 :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=OFISU5aCKv/x+B/o5jxKB/4fMVE6njPGsatdC4licCE=; fh=+RLa/lR/Y4Ewu083Dn92qlquCcVI+eAd0l+/UvctN2M=; b=ig9SgNIo0epZllYK3nQk52HzsvO+CrHJx/lH6xfieAXDBYsHrwfkILd9F9NY2WncBr mLLqTKmYyJmhEkpbwIWlztp4UU+E0klJlINWzL/FiKZvqPCDwY/0kC6FfIONZBeAg0k+ zGyMLAr1/r/4k/6COh2DiS8eUYetInV9szTUIWhMWzKCZuTsrsNAl2fkCpFMLgMxTCTk 6FgactOSuXc1E/nYA4zIPoqoFbrYy7JQ51n1jkUJFSAn/hTrF45lSacTmbgClRDzBnU+ yIyADShlTUJeu6A7jEy7yCv4vqY3YT253sLR4Wd6IhrNjYj6ZnZgmzRjWwY5MVIy7AcW 1rhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=PEQ44MRw; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=Gm+fzv98; 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 ss10-20020a170907038a00b00991cb7517bbsi2887338ejb.947.2023.07.21.18.20.36; Fri, 21 Jul 2023 18:21:00 -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=PEQ44MRw; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=Gm+fzv98; 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 S231229AbjGVAhC (ORCPT + 99 others); Fri, 21 Jul 2023 20:37:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjGVAhB (ORCPT ); Fri, 21 Jul 2023 20:37:01 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [IPv6:2001:b68:2:2800::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF06B35AB; Fri, 21 Jul 2023 17:37:00 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 79CEA6016E; Sat, 22 Jul 2023 02:36:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986219; bh=QMQEJwodT9o6IRxHFTIzt5RjgYwj1u0/oGn1cqYAU4c=; h=From:To:Cc:Subject:Date:From; b=PEQ44MRweThypBxWnT+EIhVDBZ241yyRAcnFa0vAtS/wG5FErRs0pN4x6enAEA7kk KSkA+IGdo/3po02P6SU0jYtNOWEy+FxTd02rv+GmNdO9LGbn8MvhEroqEQ163lfa4t P8EkjW5SNp5ITRq/8bwN1YneQ+EB6nM3D++j6BjiwKez4pxNhPoqF786Tv9E3KR4Nz Y1YNRbcp2T0119cZB4OQtUw/VsRjRCzPIzgvnkuhuv3Um4vif2dpgU4S8mcisFkuxR uQb3ugN7jqHwvKUtWcMGWCIiYl2F/yQjtOOXaWSKAs3JZz0L1IoxORnfatdlnVXHxW hk2ZGvNPcmFoQ== 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 fTkdtiiJxTHU; Sat, 22 Jul 2023 02:36:57 +0200 (CEST) Received: from defiant.. (unknown [94.250.191.183]) by domac.alu.hr (Postfix) with ESMTPSA id 35D2F6015F; Sat, 22 Jul 2023 02:36:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1689986217; bh=QMQEJwodT9o6IRxHFTIzt5RjgYwj1u0/oGn1cqYAU4c=; h=From:To:Cc:Subject:Date:From; b=Gm+fzv98GfXBxtE53VsjjfyRLGd3FzaW5WjkGwUgCO5J6DiGc/2VYnydkWp7ECDJw zfA6pDFbnuSz1PtP0ssU7erKX+Symrdh/aN7eLrXv8sfcKCzk2I03cE+nnqHpdj215 k+Znsb2XfGb0xgWDFKhgv+FomDcB1QPPjNx3/ghG89DpgRi9PSrffqnXNKYx3HTWMr Ed//S7kPKUYDbaJHVnxhvoufdzk7I8CaO1qHyEIVK71jQmLIZsKq2yWivegcJEQAr/ wHMLcOH+nKd9s3KqY13ZKls8k/YbXZM3GRfE2juB1j83ns3yHjUtIdducmXhtIEQDX 183XBirqKgxeA== 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 01/11] selftests: forwarding: custom_multipath_hash.sh: add cleanup for SIGTERM sent by timeout Date: Sat, 22 Jul 2023 02:36:00 +0200 Message-Id: <20230722003609.380549-1-mirsad.todorovac@alu.unizg.hr> X-Mailer: git-send-email 2.34.1 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: 511e8db54036c ("selftests: forwarding: Add test for custom multipath hash") Cc: Ido Schimmel Cc: netdev@vger.kernel.org --- tools/testing/selftests/net/forwarding/custom_multipath_hash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/custom_multipath_hash.sh b/tools/testing/selftests/net/forwarding/custom_multipath_hash.sh index 56eb83d1a3bd..c7ab883d2515 100755 --- a/tools/testing/selftests/net/forwarding/custom_multipath_hash.sh +++ b/tools/testing/selftests/net/forwarding/custom_multipath_hash.sh @@ -363,7 +363,7 @@ custom_hash() custom_hash_v6 } -trap cleanup EXIT +trap cleanup INT TERM EXIT setup_prepare setup_wait -- 2.34.1