From patchwork Fri Jun 3 13:06:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Boca X-Patchwork-Id: 629799 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (archives.nicira.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id 3rLks265nRz9sxR for ; Fri, 3 Jun 2016 23:07:18 +1000 (AEST) Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id 223C91099F; Fri, 3 Jun 2016 06:07:18 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx3v3.cudamail.com (mx3.cudamail.com [64.34.241.5]) by archives.nicira.com (Postfix) with ESMTPS id 79C651098A for ; Fri, 3 Jun 2016 06:07:17 -0700 (PDT) Received: from bar6.cudamail.com (localhost [127.0.0.1]) by mx3v3.cudamail.com (Postfix) with ESMTPS id 0837416232F for ; Fri, 3 Jun 2016 07:07:17 -0600 (MDT) X-ASG-Debug-ID: 1464959233-0b32371abe10ca90001-byXFYA Received: from mx1-pf2.cudamail.com ([192.168.24.2]) by bar6.cudamail.com with ESMTP id KLhhQl02e4yg4hjl (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 03 Jun 2016 07:07:14 -0600 (MDT) X-Barracuda-Envelope-From: pboca@cloudbasesolutions.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.24.2 Received: from unknown (HELO cbssmtp1.cloudbase.local) (91.232.152.5) by mx1-pf2.cudamail.com with SMTP; 3 Jun 2016 13:07:13 -0000 Received-SPF: pass (mx1-pf2.cudamail.com: SPF record at cloudbasesolutions.com designates 91.232.152.5 as permitted sender) X-Barracuda-Apparent-Source-IP: 91.232.152.5 X-Barracuda-RBL-IP: 91.232.152.5 Received: from localhost (localhost [127.0.0.1]) by cbssmtp1.cloudbase.local (Postfix) with ESMTP id 2588041BF2 for ; Fri, 3 Jun 2016 16:07:12 +0300 (EEST) X-Virus-Scanned: amavisd-new at cloudbasesolutions.com Received: from cbssmtp1.cloudbase.local ([127.0.0.1]) by localhost (cbssmtp1.cloudbase.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7cBuQJfh-RYg for ; Fri, 3 Jun 2016 16:06:51 +0300 (EEST) Received: from CBSEX1.cloudbase.local (unknown [10.77.78.3]) by cbssmtp1.cloudbase.local (Postfix) with ESMTP id CAF8E401B4 for ; Fri, 3 Jun 2016 16:06:51 +0300 (EEST) Received: from CBSEX1.cloudbase.local ([10.77.78.3]) by CBSEX1.cloudbase.local ([10.77.78.3]) with mapi id 14.03.0224.002; Fri, 3 Jun 2016 15:06:51 +0200 X-CudaMail-Envelope-Sender: pboca@cloudbasesolutions.com From: Paul Boca To: "dev@openvswitch.org" X-CudaMail-MID: CM-E2-602014212 X-CudaMail-DTE: 060316 X-CudaMail-Originating-IP: 91.232.152.5 Thread-Topic: [PATCH] tests: Skip vlog close and set if no python is installed X-ASG-Orig-Subj: [##CM-E2-602014212##][PATCH] tests: Skip vlog close and set if no python is installed Thread-Index: AQHRvZjLy7is67tOykmIxf2E+YGtbg== Date: Fri, 3 Jun 2016 13:06:51 +0000 Message-ID: <1464959211-15684-1-git-send-email-pboca@cloudbasesolutions.com> Accept-Language: en-US, it-IT Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.77.78.1] MIME-Version: 1.0 X-GBUdb-Analysis: 0, 91.232.152.5, Ugly c=0.313739 p=-0.428571 Source Normal X-MessageSniffer-Rules: 0-0-0-4057-c X-Barracuda-Connect: UNKNOWN[192.168.24.2] X-Barracuda-Start-Time: 1464959233 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.10 X-Barracuda-Spam-Status: No, SCORE=0.10 using global scores of TAG_LEVEL=3.5 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.0 tests=RDNS_NONE X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.30141 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.10 RDNS_NONE Delivered to trusted network by a host with no rDNS Subject: [ovs-dev] [PATCH] tests: Skip vlog close and set if no python is installed X-BeenThere: dev@openvswitch.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@openvswitch.org Sender: "dev" AT_CAPTURE_FILE([log.old]) and AT_CAPTURE_FILE([log]) will fail in case no python is installed on the system Signed-off-by: Paul-Daniel Boca --- tests/vlog.at | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/vlog.at b/tests/vlog.at index b793611..c66c84a 100644 --- a/tests/vlog.at +++ b/tests/vlog.at @@ -273,6 +273,8 @@ VLOG_CANT_REOPEN_PYN([Python2], [$HAVE_PYTHON], [$PYTHON]) VLOG_CANT_REOPEN_PYN([Python3], [$HAVE_PYTHON3], [$PYTHON3]) AT_SETUP([vlog - vlog/close - C]) +AT_SKIP_IF([test $HAVE_PYTHON = no]) +AT_SKIP_IF([test $HAVE_PYTHON3 = no]) on_exit 'kill `cat test-unixctl.pid`' AT_CAPTURE_FILE([log]) @@ -351,6 +353,8 @@ VLOG_CLOSE_PYN([Python2], [$HAVE_PYTHON], [$PYTHON]) VLOG_CLOSE_PYN([Python3], [$HAVE_PYTHON3], [$PYTHON3]) AT_SETUP([vlog - vlog/set and vlog/list - C]) +AT_SKIP_IF([test $HAVE_PYTHON = no]) +AT_SKIP_IF([test $HAVE_PYTHON3 = no]) on_exit 'kill `cat test-unixctl.pid`' AT_CAPTURE_FILE([log])