Changeset 4687


Ignore:
Timestamp:
2013-07-25 19:10:19 (6 years ago)
Author:
tojukarp
Message:

Script and library updates

Location:
2013/30
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • 2013/30/build_and_write_report.py

    r4506 r4687  
    3131def main(): 
    3232    try: 
    33         add_program("build_games.py --write-results") 
     33        add_program("build_games.py --write-results --no-pong") 
    3434        # write report expects to find a build result directory, which 
    3535        # is created by the build script. So, lets give the build a head start. 
  • 2013/30/build_and_write_report_continuously.py

    r4506 r4687  
    3131def main(): 
    3232    try: 
    33         add_program("build_games.py --write-results") 
     33        add_program("build_games.py --write-results --no-pong") 
    3434        # write report expects to find a build result directory, which 
    3535        # is created by the build script. So, lets give the build a head start. 
  • 2013/30/build_games.py

    r4685 r4687  
    1717import re 
    1818 
     19no_pong = False 
    1920should_write_results = True 
    2021 
     
    5556    match = re.search("Last Changed Date: (\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d) (\\d\\d):(\\d\\d)", svn_info_output) 
    5657    if not match: 
    57         raise Exception("Last Changed Date not found from svn info output!") 
     58        #raise Exception("Last Changed Date not found from svn info output!") 
     59        return datetime(year=2000, month=1, day=1, hour=0, minute=0) 
    5860    year = int(match.group(1)) 
    5961    month = int(match.group(2)) 
     
    7072        if should_write_results and exists(join(path, ".svn")): 
    7173            call("svn update " + path, shell=True) 
    72             outputs = Popen("svn info " + path, stdout=PIPE).communicate() 
    73             time = parse_last_changed_date(outputs[0]) 
    74             try: 
    75                 build_games_in_personal_dir(path, time) 
    76             except Exception, e: 
    77                 print 
    78                 print "NOT SUCCESSFUL FOR USER ", d, ": ", e 
    79                 users_that_did_not_build.append(d) 
     74        outputs = Popen("svn info " + path, stdout=PIPE).communicate() 
     75        time = parse_last_changed_date(outputs[0]) 
     76        try: 
     77            build_games_in_personal_dir(path, time) 
     78        except Exception, e: 
     79            print 
     80            print "NOT SUCCESSFUL FOR USER ", d, ": ", e 
     81            users_that_did_not_build.append(d) 
    8082 
    8183 
     
    121123                author = basename(personal_dir) 
    122124 
     125                if re.search("consoleapplication", project_name, flags=re.IGNORECASE): 
     126                    continue 
     127 
     128                if no_pong and re.search("^pong", project_name, flags=re.IGNORECASE): 
     129                    continue 
     130 
    123131                success = build(projects[0]) 
    124132 
     
    158166            global should_write_results 
    159167            should_write_results = True 
     168        elif arg == "--no-pong": 
     169            global no_pong 
     170            no_pong = True 
    160171        else: 
    161172            raise Exception("Unknown argument: " + arg) 
  • 2013/30/write_report.py

    r4685 r4687  
    106106            result = lines[2].strip() 
    107107            time_of_update = lines[3].strip() 
    108             if hide_pong_games and re.search("pong", name, flags=re.IGNORECASE): 
     108            if hide_pong_games and re.search("^pong", name, flags=re.IGNORECASE): 
    109109                continue 
    110110 
Note: See TracChangeset for help on using the changeset viewer.