Message ID | 1533731740-13253-3-git-send-email-i.maximets@samsung.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=samsung.com header.i=@samsung.com header.b="vHYPKZkl"; dkim-atps=neutral Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41lrTd5Z9lz9s1c for <incoming@patchwork.ozlabs.org>; Wed, 8 Aug 2018 22:36:05 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 488E3CF7; Wed, 8 Aug 2018 12:35:12 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 6A08ACE7 for <ovs-dev@openvswitch.org>; Wed, 8 Aug 2018 12:35:10 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 06B61799 for <ovs-dev@openvswitch.org>; Wed, 8 Aug 2018 12:35:09 +0000 (UTC) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180808123508euoutp018c2d3f5e9081b10caa5e0da35063bfc9~I6NzpZadC0486004860euoutp01G; Wed, 8 Aug 2018 12:35:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180808123508euoutp018c2d3f5e9081b10caa5e0da35063bfc9~I6NzpZadC0486004860euoutp01G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1533731708; bh=l7pI58JvN/7yEI4N9dGqWZnZAhel44NsRQsTVGDxQ8I=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=vHYPKZkluaNcKvXGSItxDtUfRhzYzNgsLuP7uWWELYymWksPE51QTE6bgoeUfjzDd pJJO7Ez7pt4pOogrvDvHfLxDo60EK4MlSdFttcLbuIbK9ogHyPFqCAdpTLdxu1g/3w +NEtjCmwjLGcnRboI0fnYTKLi1LSoL9t5ti0Vkk8= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180808123507eucas1p22e9a5766af0ef33e30472c16b78f36c4~I6NzD6Yi00227402274eucas1p2o; Wed, 8 Aug 2018 12:35:07 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 51.77.04806.B73EA6B5; Wed, 8 Aug 2018 13:35:07 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180808123507eucas1p120b694dfaf25641e49a0d772db6136d4~I6NyVB53m3098930989eucas1p1f; Wed, 8 Aug 2018 12:35:07 +0000 (GMT) X-AuditID: cbfec7f5-367ff700000012c6-ac-5b6ae37b4058 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 31.3D.04284.B73EA6B5; Wed, 8 Aug 2018 13:35:07 +0100 (BST) Received: from imaximets.rnd.samsung.ru ([106.109.129.180]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PD500BW56Y7DR90@eusync3.samsung.com>; Wed, 08 Aug 2018 13:35:07 +0100 (BST) From: Ilya Maximets <i.maximets@samsung.com> To: ovs-dev@openvswitch.org Date: Wed, 08 Aug 2018 15:35:33 +0300 Message-id: <1533731740-13253-3-git-send-email-i.maximets@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1533731740-13253-1-git-send-email-i.maximets@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPIsWRmVeSWpSXmKPExsWy7djPc7rVj7OiDU6f1Lb49eYBu8WSNVfY LF5NbmC0uNL+k91i7qfnjBaPWtrYHdg8nt38z+jx/FoPi8f7fVfZPPq2rGIMYInisklJzcks Sy3St0vgyjj18TJTwWWOihP7pjA1MLaxdTFycEgImEisOZPdxcjFISSwglFize37bBDOZ0aJ 7U0bgBxOsKKGo+tZIBLLGCWeLfwHVdXMJHHl63NmkCo2AR2JU6uPMILYIgLSEq9737CCFDEL 7GGUmPBnIStIQljAU+Lf2f9gRSwCqhKbO+czgdzBK+AmMf+PHcQ2OYmb5zqZQcKcAu4S3XPM QMZICHxllbjbfIsFosZFou3hWmYIW1ji1fEt7BC2jERnx0EmCLte4n7LS0aI5g5GiemH/kEl 7CW2vD4H1sAswCcxadt0ZkhY8Ep0tAlBlHhIPJm4lAniyVmMEjdXLmKZwCi5gJFhFaN4amlx bnpqsXFearlecWJucWleul5yfu4mRmC0nf53/OsOxn1/kg4xCnAwKvHwJpzOjBZiTSwrrsw9 xCjBwawkwptcBxTiTUmsrEotyo8vKs1JLT7EKM3BoiTOy6eVFi0kkJ5YkpqdmlqQWgSTZeLg lGpgPF+/+2zlRqmVdscsVh5Qu9T75/TaE63mltl9T1fY+rOfOxIsnRC1R6b6i1OMktmc80Zs 3+YVCgg/M530d5cqW7X60u33wmz0KrK1dK8cPHrZTTbVjudjVtLfsI9FimckClovzV307rLQ VtZ+3j0F304YrBbliCu8wsibFhzW6PNRZMsjVQ9VJZbijERDLeai4kQAFRhQTbICAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrLJMWRmVeSWpSXmKPExsVy+t/xq7rVj7OiDd7P4bH49eYBu8WSNVfY LF5NbmC0uNL+k91i7qfnjBaPWtrYHdg8nt38z+jx/FoPi8f7fVfZPPq2rGIMYInisklJzcks Sy3St0vgyjj18TJTwWWOihP7pjA1MLaxdTFyckgImEg0HF3P0sXIxSEksIRR4vjMx+wQTiuT RMuXE2BVbAI6EqdWH2EEsUUEpCVe975hBSliFtjDKNF//A07SEJYwFPi39n/YEUsAqoSmzvn M3UxcnDwCrhJzP9jB7FNTuLmuU5mkDCngLtE9xwzkLAQUMXOzmvsExh5FjAyrGIUSS0tzk3P LTbUK07MLS7NS9dLzs/dxAgMlG3Hfm7ewXhpY/AhRgEORiUe3oTTmdFCrIllxZW5hxglOJiV RHiT64BCvCmJlVWpRfnxRaU5qcWHGKU5WJTEec8bVEYJCaQnlqRmp6YWpBbBZJk4OKUaGHPm ZjnU7LxVUbz2jqBxcvyMRFnXaV0KHpbcXW+0/ritl98RFSWWX2vRGcfddfOQe83BMGnhKw4/ oybwfrJlmGa6y/PWsnezWHsCP71uiZl3jlf/+GTLqVObL7MtKeTX2pl1UGATw02buIinH/hS bePf1MZvf91xXET2w8farx/mWpzKr44RUWIpzkg01GIuKk4EAHs74HQQAgAA X-CMS-MailID: 20180808123507eucas1p120b694dfaf25641e49a0d772db6136d4 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180808123507eucas1p120b694dfaf25641e49a0d772db6136d4 References: <1533731740-13253-1-git-send-email-i.maximets@samsung.com> <CGME20180808123507eucas1p120b694dfaf25641e49a0d772db6136d4@eucas1p1.samsung.com> X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: Ilya Maximets <i.maximets@samsung.com>, Alin Gabriel Serdean <aserdean@ovn.org> Subject: [ovs-dev] [PATCH v3 2/9] tests: Set default timeout for utils in subshell. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org |
Series |
tests: Clean up syslog.
|
expand
|
diff --git a/tests/ofproto-macros.at b/tests/ofproto-macros.at index 2a56ae6..df8e7c4 100644 --- a/tests/ofproto-macros.at +++ b/tests/ofproto-macros.at @@ -107,7 +107,17 @@ sim_add () { # there. as() { if test "X$2" != X; then - (ovs_setenv $1; shift; "$@") + ( + ovs_setenv $1; shift; + cmd=$1; shift; + for util in $OVS_UTILS_LIST; do + if test "X$util" = "X$cmd"; then + $cmd --timeout=$OVS_TIMEOUT "$@" + exit "$?" + fi + done + $cmd "$@" + ) else ovs_setenv $1 fi
Aliases are not inheritable. To add a default options for utils executed in subshell we may try to catch them here and append options explicitly. There are still few cases with utils invocation in subshell inside the functions that we can not track this way, but they are not very frequent. Signed-off-by: Ilya Maximets <i.maximets@samsung.com> --- tests/ofproto-macros.at | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)