Changeset 2753


Ignore:
Timestamp:
04/05/12 08:58:06 (2 years ago)
Author:
jdsiiro
Message:

Checking that the --root is not empty: this is a meaningless value (as
the root option should point to a directory) that leads to a
poorly-formatted XML report (see #3917).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gcovr/trunk/scripts/gcovr

    r2750 r2753  
    2525# For more information, see the FAST README.txt file. 
    2626# 
    27 # $Revision 2750 $ 
    28 # $Date 2012-04-03 13:42:29 -0700 (Tue, 03 Apr 2012) $ 
     27# $Revision 2753 $ 
     28# $Date 2012-04-05 08:58:06 -0700 (Thu, 05 Apr 2012) $ 
    2929# _________________________________________________________________________ 
    3030# 
     
    4444 
    4545__version__ = "2.4-prerelease" 
    46 src_revision = "$Revision 2750 $" 
     46src_revision = "$Revision 2753 $" 
    4747gcov_cmd = "gcov" 
    4848 
     
    799799    options.filter = re.compile(options.filter) 
    800800elif options.root is not None: 
     801    if not options.root: 
     802        sys.stderr.write("ERROR: empty --root option.\n" 
     803                         "   Root specifies the path to the root directory of your project: " 
     804                         "cannot be an empty string.\n") 
     805        sys.exit(1) 
    801806    options.filter = re.compile(re.escape(os.path.abspath(options.root)+os.sep)) 
    802807if options.filter is None: 
Note: See TracChangeset for help on using the changeset viewer.