Exemple #1
0
                        help="Field to use as the x-axis. Default: 'revision'. Other possibilities: 'date'.")

    parser.add_argument('dbfile', metavar='DBFILE', type=str, nargs='+',
                        default=["./MantidSystemTests.db"], 
                        help='Required: Path to the SQL database file(s).')
        
    
    args = parser.parse_args()
    
    # Import the manager definition
    import analysis
    import sqlresults
    
    if len(args.dbfile) > 1:
        # Several files - join them into one big .db
        dbfile = join_databases(args.dbfile)
    else:
        # Only one file - use it
        dbfile = args.dbfile[0]
        
    
    if not os.path.exists(dbfile):
        print "Error! Could not find", dbfile
        sys.exit(1)
    
    # This is where we look for the DB file
    sqlresults.set_database_filename(dbfile)
    
    # Make the report
    analysis.generate_html_report(args.path, 100, args.x_field)
Exemple #2
0
                        help="Field to use as the x-axis. Default: 'revision'. Other possibilities: 'date'.")

    parser.add_argument('dbfile', metavar='DBFILE', type=str, nargs='+',
                        default=["./MantidSystemTests.db"],
                        help='Required: Path to the SQL database file(s).')


    args = parser.parse_args()

    # Import the manager definition
    import analysis
    import sqlresults

    if len(args.dbfile) > 1:
        # Several files - join them into one big .db
        dbfile = join_databases(args.dbfile)
    else:
        # Only one file - use it
        dbfile = args.dbfile[0]


    if not os.path.exists(dbfile):
        print "Error! Could not find", dbfile
        sys.exit(1)

    # This is where we look for the DB file
    sqlresults.set_database_filename(dbfile)

    # Make the report
    analysis.generate_html_report(args.path, 100, args.x_field)