From mboxrd@z Thu Jan 1 00:00:00 1970 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 4867DC001E0 for ; Mon, 23 Oct 2023 11:22:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233829AbjJWLWE (ORCPT ); Mon, 23 Oct 2023 07:22:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233830AbjJWLWE (ORCPT ); Mon, 23 Oct 2023 07:22:04 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 293DFC1 for ; Mon, 23 Oct 2023 04:22:02 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C0D3C433CB; Mon, 23 Oct 2023 11:22:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1698060121; bh=v1CRF/xVtNAtTis9zYStt8We4FUuq7pM/gg2hXw/Fmc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oNFD8K6HLyNPMGBdVzqZQc4/u6q5SrJBCN5JSM+Y7CvARQHGj0oZOG1YtVsnZPrZD QdQ4riIKI0+TE5njC/RwPkIGt7zKpwltIYw6DlhxlwvhIDo0dCz6qzT7Ef/EvlmMIH yW7r814dGgDlmfOZMGJrqJx3DwG/SzcfUfhapq4c= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Aaron Conole , "David S. Miller" Subject: [PATCH 6.1 066/196] selftests: openvswitch: Catch cases where the tests are killed Date: Mon, 23 Oct 2023 12:55:31 +0200 Message-ID: <20231023104830.409090896@linuxfoundation.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231023104828.488041585@linuxfoundation.org> References: <20231023104828.488041585@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Aaron Conole commit af846afad5ca1c1a24d320adf9e48255e97db84e upstream. In case of fatal signal, or early abort at least cleanup the current test case. Fixes: 25f16c873fb1 ("selftests: add openvswitch selftest suite") Signed-off-by: Aaron Conole Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/net/openvswitch/openvswitch.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/net/openvswitch/openvswitch.sh b/tools/testing/selftests/net/openvswitch/openvswitch.sh index 220c3356901e..2a0112be7ead 100755 --- a/tools/testing/selftests/net/openvswitch/openvswitch.sh +++ b/tools/testing/selftests/net/openvswitch/openvswitch.sh @@ -3,6 +3,8 @@ # # OVS kernel module self tests +trap ovs_exit_sig EXIT TERM INT ERR + # Kselftest framework requirement - SKIP code is 4. ksft_skip=4 -- 2.42.0