Skip to content

Commit

Permalink
Update to save the empty results folder from a cover project. That wa…
Browse files Browse the repository at this point in the history
…y results can still be imported and reports generated
  • Loading branch information
TimSVector committed Oct 18, 2024
1 parent 8c868d1 commit 975f0cc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/resources/scripts/copy_build_dir.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,11 @@ def addDirectory(tf, build_dir, dir):
rootDir = os.path.join(build_dir,dir).replace("\\","/")

for dirName, subdirList, fileList in os.walk(rootDir):
for fname in fileList:
tf.add(os.path.join(dirName, fname))
if len(fileList) == 0:
tf.add(dirName)
else:
for fname in fileList:
tf.add(os.path.join(dirName, fname))

def addConvertCoverFile(tf, file, workspace, build_dir, nocase):

Expand Down Expand Up @@ -178,6 +181,7 @@ def run(ManageProjectName, Level, BaseName, Env, workspace):
addFile(tf, "ENVIRO.AUX*", build_dir)
addFile(tf, "system_test_results.xml", build_dir)
addDirectory(tf, build_dir, "TESTCASES")
addDirectory(tf, build_dir, "results")
addFile(tf, "CCAST_.CFG", build_dir, backOneDir=True)
addFile(tf, Env + ".vce", build_dir, backOneDir=True)
addFile(tf, Env + ".vcp", build_dir, backOneDir=True)
Expand Down

0 comments on commit 975f0cc

Please sign in to comment.