Changeset 26fe83 in indico


Ignore:
Timestamp:
06/18/10 18:58:56 (3 years ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
Children:
c571e5
Parents:
590de6
git-author:
Jeremy Nguyen Xuan <jeremy.nguyen.xuan@…> (01/28/10 18:27:43)
git-committer:
Pedro Ferreira <jose.pedro.ferreira@…> (06/18/10 18:58:56)
Message:

[FIX] unzip function was bugged

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • indicop/Indicop.py

    r590de6 r26fe83  
    156156 
    157157            #retrieving tests from Indicop folder 
    158             args = ['nose', '--nologcapture','--logging-clear-handlers', '-v', os.path.join(self.setupDir, 'python', 'unit')] 
     158            args = ['nose', '--nologcapture', '--logging-clear-handlers', '-v', os.path.join(self.setupDir, 'python', 'unit')] 
    159159            #retrieving tests from plugins folder 
    160160            for folder in self.walkThroughFolders(os.path.join(self.setupDir, 
     
    249249 
    250250        #retrieving tests from Indicop folder 
    251         args = ['nose', '-v', os.path.join(self.setupDir, 'python', 'functional')] 
     251        args = ['nose', '--nologcapture', '--logging-clear-handlers', '-v', os.path.join(self.setupDir, 'python', 'functional')] 
    252252        #retrieving tests from plugins folder 
    253253        for folder in self.walkThroughFolders(os.path.join(self.setupDir, 
  • setup.py

    r590de6 r26fe83  
    385385        """check if needed jars are here, if not, dowloading them and unzip a file if necessary""" 
    386386        jarsList = {} 
     387        currentFilePath = os.path.dirname(__file__) 
    387388 
    388389        jarsList['jsunit'] = {'url': "http://js-test-driver.googlecode.com/files/JsTestDriver-1.2.jar", 
    389                                       'path': os.path.join(os.path.dirname(__file__), 
     390                                      'path': os.path.join(currentFilePath, 
    390391                                            'indicop', 
    391392                                            'javascript', 
     
    394395 
    395396        jarsList['jscoverage'] = {'url': "http://js-test-driver.googlecode.com/files/coverage-1.2.jar", 
    396                                   'path': os.path.join(os.path.dirname(__file__), 
     397                                  'path': os.path.join(currentFilePath, 
    397398                                        'indicop', 
    398399                                        'javascript', 
     
    402403 
    403404        jarsList['selenium'] = {'url': "http://release.seleniumhq.org/selenium-remote-control/1.0.1/selenium-remote-control-1.0.1-dist.zip", 
    404                                 'path': os.path.join(os.path.dirname(__file__), 
     405                                'path': os.path.join(currentFilePath, 
    405406                                        'indicop', 
    406407                                        'python', 
     
    409410                                'zipname': "selenium-remote-control-1.0.1-dist.zip", 
    410411                                'inZipPath': "selenium-remote-control-1.0.1/selenium-server-1.0.1/selenium-server.jar"} 
    411  
    412412 
    413413        validJars = True 
     
    451451            zfobj = zipfile.ZipFile(zipPath) 
    452452            outfile = open(targetFile, 'wb') 
    453             outfile.write(zfobj.read('inZipPath')) 
     453            outfile.write(zfobj.read(inZipPath)) 
    454454            outfile.flush() 
    455455            outfile.close() 
    456         finally: 
     456 
    457457            #delete zip file 
    458458            os.unlink(zipPath) 
     459        except NameError, e: 
     460            print e 
    459461 
    460462if __name__ == '__main__': 
Note: See TracChangeset for help on using the changeset viewer.