No bug - Remove some dead code from importTestsuite.py. (NPOTB, DONTBUILD)
authorMs2ger <ms2ger@gmail.com>
Sun, 30 Sep 2012 09:53:39 +0200
changeset 108770 d912cef9b337e947305238224209459c673cae0e
parent 108769 12453e5547a80ed163ce7a6d49d26f1b03f82acc
child 108794 0df33af01ceeb06e16ce554ea1ce499260439178
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
milestone18.0a1
No bug - Remove some dead code from importTestsuite.py. (NPOTB, DONTBUILD)
dom/imptests/importTestsuite.py
--- a/dom/imptests/importTestsuite.py
+++ b/dom/imptests/importTestsuite.py
@@ -7,17 +7,16 @@
 Imports a test suite from a remote repository. Takes one argument, a file in
 the format described in README.
 Note: removes both source and destination directory before starting. Do not
       use with outstanding changes in either directory.
 """
 
 import os
 import shutil
-import string
 import subprocess
 import sys
 
 import parseManifest
 import writeMakefile
 
 def parseManifestFile(dest, dir):
   subdirs, mochitests, _, __, supportfiles = parseManifest.parseManifestFile("hg-%s/%s/MANIFEST" % (dest, dir))
@@ -54,18 +53,16 @@ def makePath(a, b):
   return "%s/%s" % (a, b)
 
 def copy(thissrcdir, dest, directories):
   """Copy mochitests and support files from the external HG directory to their
   place in mozilla-central.
   """
   print "Copying %s..." % (directories, )
   for d in directories:
-    dirtocreate = dest
-
     subdirs, mochitests, supportfiles = parseManifestFile(dest, d)
     sourcedir = makePath("hg-%s" % dest, d)
     destdir = makePath(dest, d)
     os.makedirs(destdir)
 
     for mochitest in mochitests:
       shutil.copy("%s/%s" % (sourcedir, mochitest), "%s/test_%s" % (destdir, mochitest))
     for support in supportfiles: