Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1049843rdg; Wed, 11 Oct 2023 12:50:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHKK1v2EDr/4RFe1qc6mUawlTMoWYkp3HIiEN0VcWDMl+cXlG4WmDST6qy55PYJ7Fh/ClqR X-Received: by 2002:a05:6a00:8c7:b0:68b:e710:ee9c with SMTP id s7-20020a056a0008c700b0068be710ee9cmr26718953pfu.19.1697053846547; Wed, 11 Oct 2023 12:50:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697053846; cv=none; d=google.com; s=arc-20160816; b=ZtUISuII6UXhnJHBmUnGXg935POmrdf8N1NKNzalQwEJ92d7VQvHFk9Umx/NFjAc92 W70mRZ+VUh47PGCxmKHchASn8RZowNamFqtgyXwnEuBEo+1bRgK2nn1sJ8jZf+X6DeR1 TXgwe3jhNAI+lFfIQkVhUSWW+LufLF7yJaMon2KYSwA3ybRWAjJaCWpXGQS6+07NykJz 8nnWV73tI+po8a5FSft0E1Xdi+zo466qb5KcmefVHnnr1Q0ZpAM93oOC0DJsI0DpshjR oGhLdLAsI57eGwBejF2VmFNj98rCKKStr3cM//e30bEpYYbj13XrQNZ4jQWIqVNKWMuD X/Vg== 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 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 Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bv8-20020a632e08000000b0055fc5e67d56si492797pgb.7.2023.10.11.12.50.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 12:50:46 -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=D8SghRhg; 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 B9C1D80EE0EB; Wed, 11 Oct 2023 12:50:45 -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 S234840AbjJKTuh (ORCPT + 99 others); Wed, 11 Oct 2023 15:50:37 -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 Content-Transfer-Encoding: 8bit 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:45 -0700 (PDT) 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 -- 2.41.0