Example #1
0
 def testDecode(self):
     """
     """
     decoder = pylib_erun.e_res_parser(300, stats+x_stats+x4_stats)
     tmp = decoder.translate_result(self.teststr)
     self.assertEqual(3+len(stats+x_stats+x4_stats), len(tmp))
Example #2
0
        elif  option == "-C" or option == "--cpu-stats":
            stats.extend(x6_stats)
        elif option == "-c" or option == "--cores":
            cores = int(optarg)
        else:
            sys.exit("Unknown option "+ option)

    try:
        os.makedirs(bsub_rundir)
        os.makedirs(old_job_dir)
    except OSError:
        pass

    job_db = pylib_db.key_db(db_file)
    results = pylib_eprot.estrat_set(testrun_dir)  
    parser = pylib_erun.e_res_parser(300, stats)

    jobcount, scheduled = find_batch_jobs(job_db)

    print "Currently running:", jobcount

    if force_scheduling:
        scheduled = set()
        
    process_complete_jobs(parser, results, job_db, bsub_rundir)
    results.sync()

    max_bsub_jobs = max_bsub_jobs - jobcount
    for name in args:
        newscheduled = process_strat(name, results, scheduled,
                                     max_bsub_jobs, job_db)