mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 751842 part 4 - Update importTestsuite.py to support tests in repo root; r=jhammel
This commit is contained in:
parent
58f05fa722
commit
c1d39eda5b
@ -55,8 +55,13 @@ def copy(thissrcdir, dest, directories):
|
|||||||
dirtocreate = dest
|
dirtocreate = dest
|
||||||
|
|
||||||
subdirs, mochitests, supportfiles = parseManifestFile(dest, d)
|
subdirs, mochitests, supportfiles = parseManifestFile(dest, d)
|
||||||
sourcedir = "hg-%s/%s" % (dest, d)
|
if d:
|
||||||
destdir = "%s/%s" % (dest, d)
|
sourcedir = "hg-%s/%s" % (dest, d)
|
||||||
|
destdir = "%s/%s" % (dest, d)
|
||||||
|
else:
|
||||||
|
# Empty directory, i.e., the repository root
|
||||||
|
sourcedir = "hg-%s" % dest
|
||||||
|
destdir = dest
|
||||||
os.makedirs(destdir)
|
os.makedirs(destdir)
|
||||||
|
|
||||||
for mochitest in mochitests:
|
for mochitest in mochitests:
|
||||||
@ -65,7 +70,11 @@ def copy(thissrcdir, dest, directories):
|
|||||||
shutil.copy("%s/%s" % (sourcedir, support), "%s/%s" % (destdir, support))
|
shutil.copy("%s/%s" % (sourcedir, support), "%s/%s" % (destdir, support))
|
||||||
|
|
||||||
if len(subdirs):
|
if len(subdirs):
|
||||||
importDirs(thissrcdir, dest, ["%s/%s" % (d, subdir) for subdir in subdirs])
|
if d:
|
||||||
|
importDirs(thissrcdir, dest, ["%s/%s" % (d, subdir) for subdir in subdirs])
|
||||||
|
else:
|
||||||
|
# Empty directory, i.e., the repository root
|
||||||
|
importDirs(thissrcdir, dest, subdirs)
|
||||||
|
|
||||||
def printMakefile(dest, directories):
|
def printMakefile(dest, directories):
|
||||||
"""Create a .mk file to be included into the main Makefile.in, which lists the
|
"""Create a .mk file to be included into the main Makefile.in, which lists the
|
||||||
@ -116,7 +125,11 @@ def printMakefiles(thissrcdir, dest, directories):
|
|||||||
"""
|
"""
|
||||||
print "Creating Makefile.ins..."
|
print "Creating Makefile.ins..."
|
||||||
for d in directories:
|
for d in directories:
|
||||||
path = "%s/%s" % (dest, d)
|
if d:
|
||||||
|
path = "%s/%s" % (dest, d)
|
||||||
|
else:
|
||||||
|
# Empty directory, i.e., the repository root
|
||||||
|
path = dest
|
||||||
abspath = "%s/%s" % (thissrcdir, path)
|
abspath = "%s/%s" % (thissrcdir, path)
|
||||||
print "Creating Makefile.in in %s..." % (path, )
|
print "Creating Makefile.in in %s..." % (path, )
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user