Index: utils/analyzer/SATestBuild.py =================================================================== --- utils/analyzer/SATestBuild.py +++ utils/analyzer/SATestBuild.py @@ -651,40 +651,6 @@ removeLogFile(SBOutputDir) -def updateSVN(Mode, PMapFile): - """ - svn delete or svn add (depending on `Mode`) all folders defined in the file - handler `PMapFile`. - Commit the result to SVN. - """ - try: - for I in iterateOverProjects(PMapFile): - ProjName = I[0] - Path = os.path.join(ProjName, getSBOutputDirName(True)) - - if Mode == "delete": - Command = "svn delete '%s'" % (Path,) - else: - Command = "svn add '%s'" % (Path,) - - if Verbose == 1: - print " Executing: %s" % (Command,) - check_call(Command, shell=True) - - if Mode == "delete": - CommitCommand = "svn commit -m \"[analyzer tests] Remove " \ - "reference results.\"" - else: - CommitCommand = "svn commit -m \"[analyzer tests] Add new " \ - "reference results.\"" - if Verbose == 1: - print " Executing: %s" % (CommitCommand,) - check_call(CommitCommand, shell=True) - except: - print "Error: SVN update failed." - sys.exit(-1) - - def testProject(ID, ProjectBuildMode, IsReferenceBuild=False, Strictness=0): print " \n\n--- Building project %s" % (ID,) @@ -748,25 +714,15 @@ raise Exception() -def testAll(IsReferenceBuild=False, UpdateSVN=False, Strictness=0): +def testAll(IsReferenceBuild=False, Strictness=0): with projectFileHandler() as PMapFile: validateProjectFile(PMapFile) - # When we are regenerating the reference results, we might need to - # update svn. Remove reference results from SVN. - if UpdateSVN: - assert(IsReferenceBuild) - updateSVN("delete", PMapFile) - # Test the projects. for (ProjName, ProjBuildMode) in iterateOverProjects(PMapFile): testProject( ProjName, int(ProjBuildMode), IsReferenceBuild, Strictness) - # Re-add reference results to SVN. - if UpdateSVN: - updateSVN("add", PMapFile) - if __name__ == '__main__': # Parse command line arguments. @@ -779,18 +735,11 @@ reference. Default is 0.') Parser.add_argument('-r', dest='regenerate', action='store_true', default=False, help='Regenerate reference output.') - Parser.add_argument('-rs', dest='update_reference', action='store_true', - default=False, - help='Regenerate reference output and update svn.') Args = Parser.parse_args() IsReference = False - UpdateSVN = False Strictness = Args.strictness if Args.regenerate: IsReference = True - elif Args.update_reference: - IsReference = True - UpdateSVN = True - testAll(IsReference, UpdateSVN, Strictness) + testAll(IsReference, Strictness)