From patchwork Wed Oct 11 19:49:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Conole X-Patchwork-Id: 151533 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp776621vqb; Wed, 11 Oct 2023 12:50:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGNAYulFBeC8DEGViB+aYhmJk/DjpGNup/95a82fzTGMVrxWm3Ghl0fy1vSK1zrw1EYrJ15 X-Received: by 2002:a17:902:a40e:b0:1c9:bd60:72a6 with SMTP id p14-20020a170902a40e00b001c9bd6072a6mr5224122plq.4.1697053848381; Wed, 11 Oct 2023 12:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697053848; cv=none; d=google.com; s=arc-20160816; b=ErzKjd+Gk6v2vGcLeWeb6KBlzZR7R0BVvPwdMB0frJgZIbM0Xb7vG2TOXzan6C824L GgwcMXKy8cNaU6mpdGCUDljw4GqEfuKVXBhTQvIq3ghsIfSzQP1OT544VJp9/I/7ag7I T4yUmQIonuISU3PMrkw7qEz7Y+QXMlnagxV84qHGf3KNlJ/Zdkc+YGAPYOt+2ePNXt61 esSSDR0Est/icyyIk2pTZcU7sR77n8OhPo4rAJ43bh+BA5Ei4KpfC7H1k9fRF3+fyGYc yY2WXrd90DEQJ2Ei1cOkx4KLpop5aJdS8cYe9TxPIr4l3+sj8MxEaXKl5MZZYrTF+3Pj E01w== 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; bh=91TzyC8lAiMG2w2YCIi0bUrneGmE9j31gOJx7+kZs/U=; fh=88nBSjTOrhHvyQS3Sgn//fCA45rCHSUCvyWdnfpu45A=; b=HFw4Fq9fzLlRj8pXDzNz0a5IwbcjSyZLKXD4XI+/o9KGecBbRtyALK8RN+puhF6POR r/NjfQir94D8dTlnhSYOieqqnTb/v67K7tiKlGLJZSbphib8IN1TNq0jif/t6ov+oPS8 pajExu6v4CyxYcppaPY1+4WWmzvvkoOymoaSjlhupnaheUsEuGevmWycQ06TfjfJtnsn m4fcTOy8t0JRjv8T5HnE5Hp/Xyq6+wWwpVn67yNlFy9KoMqlJJCzz1LJtTNskM6kFpyz 2xBtZD5o5qs3bJ5wj1bHQUzKatgdQYeXfDTtH2KN5nujtJ/KzNu1CCMMx5Fj7fS1HIUO Hxgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=D8SghRhg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id g13-20020a170902c38d00b001c62ca6d540si423038plg.77.2023.10.11.12.50.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 12:50:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=D8SghRhg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 7AFCF80EE0EE; Wed, 11 Oct 2023 12:50:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234878AbjJKTuj (ORCPT + 18 others); Wed, 11 Oct 2023 15:50:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233467AbjJKTue (ORCPT ); Wed, 11 Oct 2023 15:50:34 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A021BA for ; Wed, 11 Oct 2023 12:49:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697053787; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=91TzyC8lAiMG2w2YCIi0bUrneGmE9j31gOJx7+kZs/U=; b=D8SghRhg9aTdvw8Cn6XNqTxx5963L5jgIjjJEuhvgxkqPn4wVDsY1VEF8/GGpvY2f8qMiu nTGbdoShtBn3Lle2uj0wuydxdLR5BX6bgy3FiKnbqVP3YJLknSByFtcCzzdiU83RSuiNOm ty+R3zu7AsR/65GFzTdsKPvaX70AT5U= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-652-vX6TnARzM2up3P1Duj4RCQ-1; Wed, 11 Oct 2023 15:49:43 -0400 X-MC-Unique: vX6TnARzM2up3P1Duj4RCQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3228A832D6D; Wed, 11 Oct 2023 19:49:42 +0000 (UTC) Received: from RHTPC1VM0NT.lan (unknown [10.22.34.140]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8A2DC1C060B5; Wed, 11 Oct 2023 19:49:41 +0000 (UTC) From: Aaron Conole To: netdev@vger.kernel.org Cc: dev@openvswitch.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Pravin B Shelar , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Adrian Moreno , Eelco Chaudron , shuah@kernel.org Subject: [PATCH net v2 2/4] selftests: openvswitch: Catch cases where the tests are killed Date: Wed, 11 Oct 2023 15:49:37 -0400 Message-ID: <20231011194939.704565-3-aconole@redhat.com> In-Reply-To: <20231011194939.704565-1-aconole@redhat.com> References: <20231011194939.704565-1-aconole@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 11 Oct 2023 12:50:47 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779489936182342477 X-GMAIL-MSGID: 1779489936182342477 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 --- 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 220c3356901ef..2a0112be7ead5 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