From patchwork Fri Oct 6 15:12:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Conole X-Patchwork-Id: 149297 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp401640vqo; Fri, 6 Oct 2023 08:14:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGxhFmBpLy7jehbj+xKCoxo5I5wf+FdvZxzIQZ3IDNQ3azP5AqmKDb4qMFonz/w2vOBH3fR X-Received: by 2002:a05:6358:4327:b0:14f:6a41:5d14 with SMTP id r39-20020a056358432700b0014f6a415d14mr9594162rwc.27.1696605263474; Fri, 06 Oct 2023 08:14:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696605263; cv=none; d=google.com; s=arc-20160816; b=S8IxcM6GyY5IsMhSauR+0fAYR/c48JOjhzNChomOc9kl3hYwunjrCv8KgZpYUpR/B6 39MxbO5dSMY4+LvCqcws2aH+PMp9o+NPW+MqEr6WfxMGfRKX5XxDSIly59fiHpbkrAHP xElRKBxcNEkHyNpjuBE9xWwvmUxb5qN88AzuXVE5ao53IIm/My3x1kFN73wIVOQzkLnJ FRMLO7jnoplIdPtbvVqOLMg6oKPFl6WolNiwWjMNvzl7PDOZcH5ljNpC0/UTd1m68ge7 a4uKbSta4Rr+JhioTTQo4aiqo6yqWtaPEW87M1lwg4LBBjohAzq0ZYKEPKSUl4hjrKUe +6YQ== 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=hEs2YTai71Oxsm1h48XGSC/OcSdgTJbKcxBa3FO/lWI=; fh=MdzQONQ/gulM6swFM9amSgUVTs752ZpsSWOQLplcSFQ=; b=uSF9YUEE88AnCJAR4naw/vDa++jJqiXLC9sZSaDa6+pup9B7ttnaG5RX/Wlr3Z8aP5 EdB4WgOGpTk28yYi3FhqdWGsy6POBFSrApwqkMxHzcRQtRDs7XY9jyRUZdtzl1e1fVTo DypBqxvOBh7NBYe67qG6UPU+9HkGqJ15opsqwNPxrrwiCgbSt0K2pRE9RifJ9+EbnlDX aFBS3RvTf18iiCRi67/ci7NoxcJTL36mbyMv3tJ0aIvsQsrsKFsAfyl+DwY5eXPrtF7z aCaFEiwHxtainOmA8Pym/HXuBQGvNEAp9cg6ZfzO1JCcKFUYNI3A8QdveFA656FE9cu1 +GDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fG6yhCDq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id j63-20020a638042000000b005859eba7939si3668547pgd.20.2023.10.06.08.14.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 08:14:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fG6yhCDq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 14046803203C; Fri, 6 Oct 2023 08:14:12 -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 S232771AbjJFPOE (ORCPT + 18 others); Fri, 6 Oct 2023 11:14:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232697AbjJFPNw (ORCPT ); Fri, 6 Oct 2023 11:13:52 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63B90D6 for ; Fri, 6 Oct 2023 08:13:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696605184; 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=hEs2YTai71Oxsm1h48XGSC/OcSdgTJbKcxBa3FO/lWI=; b=fG6yhCDqSFD2sLQoZYY1Nnas6kQfcOHgaD9CDSMf7SbvE0QHmK282EGhN/1ZWuyXp+rzSL F2vBFP6704Qbf1yVEIGJUNZgWnLNT17v7EKBv9KWX3eZgUaZGZf1G46r4TJ889e0/qjh+g DC/GEjU7nWFPNA4sq82PQPdJ3DRIJ9Q= 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-153-GX01X3SPOG6PpMjEqmc9QQ-1; Fri, 06 Oct 2023 11:13:01 -0400 X-MC-Unique: GX01X3SPOG6PpMjEqmc9QQ-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (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 CCFEB85A5A8; Fri, 6 Oct 2023 15:13:00 +0000 (UTC) Received: from RHTPC1VM0NT.lan (unknown [10.22.33.74]) by smtp.corp.redhat.com (Postfix) with ESMTP id 49C2D40D1EA; Fri, 6 Oct 2023 15:13:00 +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 Subject: [PATCH net 2/4] selftests: openvswitch: Catch cases where the tests are killed Date: Fri, 6 Oct 2023 11:12:56 -0400 Message-Id: <20231006151258.983906-3-aconole@redhat.com> In-Reply-To: <20231006151258.983906-1-aconole@redhat.com> References: <20231006151258.983906-1-aconole@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 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_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE 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]); Fri, 06 Oct 2023 08:14:12 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779019560729664512 X-GMAIL-MSGID: 1779019560729664512 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