diff options
Diffstat (limited to 'tests/cdash/builder.py')
-rw-r--r-- | tests/cdash/builder.py | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/tests/cdash/builder.py b/tests/cdash/builder.py index 6336a3db..424b3c7f 100644 --- a/tests/cdash/builder.py +++ b/tests/cdash/builder.py @@ -1,3 +1,23 @@ +# +# builder.py - PJSIP test scenarios builder +# +# Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com) +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + import ccdash import os import platform @@ -193,12 +213,12 @@ class TestBuilder: excluded = False included = False for pat in self.exclude: - if re.search(pat, fullcmd) != None: + if pat and re.search(pat, fullcmd) != None: excluded = True break if excluded: for pat in self.not_exclude: - if re.search(pat, fullcmd) != None: + if pat and re.search(pat, fullcmd) != None: included = True break if excluded and not included: |