Commit 21f4ce59 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

fixed issue with CTestXML2HTML and subdirs in template dir

parent a312c443
...@@ -611,12 +611,21 @@ def main(): ...@@ -611,12 +611,21 @@ def main():
print "Cannot find skeleton directory in ${DATA_PATH}" print "Cannot find skeleton directory in ${DATA_PATH}"
exit(1) exit(1)
# Copy the files in the template directory excluding the directories # Copy the template directory (do not overwrite)
for f in os.listdir(skel): for dirpath, dirnames, filenames in os.walk(skel):
src = os.path.join(skel, f) destpath = os.path.join(outputTemp,
dst = os.path.join(outputTemp, f) os.path.relpath(dirpath, skel))
if not os.path.isdir(src) and not os.path.exists(dst): for d in dirnames:
shutil.copy(src, dst) if d in ('.svn', '.git'):
d = os.path.join(destpath, d)
if not os.path.exists(d):
for f in filenames:
src = os.path.join(dirpath, f)
dst = os.path.join(destpath, f)
if not os.path.exists(dst):
shutil.copy(src, dst)
# process each test case # process each test case
for Test in tests: for Test in tests:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment