Changeset 2411


Ignore:
Timestamp:
Jan 2, 2009 6:51:25 PM (12 years ago)
Author:
bennylp
Message:

Fixed error with platform detection in cdash test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/tests/cdash/builder.py

    r2410 r2411  
    192192            f.close() 
    193193        if True: 
    194             f = open(name, "wt") 
     194            f = open(name, "w") 
    195195            f.write(self.user_mak) 
    196196            f.close() 
     
    302302            proc = subprocess.Popen("sh "+self.config.base_dir+"/config.guess", 
    303303                                    shell=True, stdout=subprocess.PIPE) 
    304             sys = proc.stdout.readline().rstrip(" \r\n") 
    305             build_name =  sys + "-"+gcc_version(self.cross_compile + "gcc") 
    306             suffix = "-" + sys 
     304            plat = proc.stdout.readline().rstrip(" \r\n") 
     305            build_name =  plat + "-"+gcc_version(self.cross_compile + "gcc") 
     306            suffix = "-" + plat 
    307307 
    308308        if self.build_config_name: 
     
    311311        cmds.extend(update_ops) 
    312312        cmds.append(Operation(Operation.CONFIGURE, "sh ./configure")) 
    313         if sys.platform == "win32": 
     313        if sys.platform=="win32": 
    314314            # Don't build python module on Mingw 
    315315            cmds.append(Operation(Operation.BUILD,  
Note: See TracChangeset for help on using the changeset viewer.