Skip to content

Commit 40acf3d

Browse files
committed
Redid a fix that was messing things up on cbt analysis
1 parent bffd2f0 commit 40acf3d

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/main/resources/scripts/generate_xml.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,7 @@ def runAggregateReport(self,comp,ts,env_name,report_name):
863863
shutil.copyfile(fname, report_name)
864864
except:
865865
traceback.print_exc()
866+
866867
def skipReporting(self, env):
867868

868869
build_dir = ""
@@ -1016,10 +1017,8 @@ def __init__(self, FullManageProjectName, build_dir, env, compiler, testsuite, c
10161017

10171018
## use hash code instead of final directory name as regression scripts can have overlapping final directory names
10181019
build_dir = build_dir.replace("\\","/")
1019-
1020-
# not sure why this was added, but causing issues with a path with /.blah as a path
1021-
# commenting out for now
1022-
# build_dir = build_dir.replace("/.","")
1020+
if build_dir.endswith("/."):
1021+
build_dir = build_dir.replace("/.","")
10231022
build_dir_4hash = build_dir.upper()
10241023
build_dir_4hash = "/".join(build_dir_4hash.split("/")[-2:])
10251024

@@ -1086,12 +1085,6 @@ def generate_unit(self):
10861085
print("self.api: ")
10871086
pprint(dump(self.api))
10881087

1089-
print("self.api.TestCase.all(): ")
1090-
try:
1091-
pprint(self.api.TestCase.all())
1092-
except:
1093-
print("error with self.api.TestCase.all() call")
1094-
10951088

10961089
if isinstance(self.api, CoverApi):
10971090
try:
@@ -1133,6 +1126,13 @@ def generate_unit(self):
11331126
return
11341127

11351128
else:
1129+
if self.verbose:
1130+
1131+
print("self.api.TestCase.all(): ")
1132+
try:
1133+
pprint(self.api.TestCase.all())
1134+
except:
1135+
print("error with self.api.TestCase.all() call")
11361136
try:
11371137
self.start_unit_test_file()
11381138
self.add_compound_tests()

src/main/resources/scripts/parse_console_for_cbt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def parse(self, console_log):
7777

7878
for line in console_log:
7979
try:
80-
lineTime, line = line.split(" ",1)
8180
line_dto = datetime.strptime(lineTime,"%H:%M:%S.%f")
81+
lineTime, line = line.split(" ",1)
8282
except:
8383
pass
8484

0 commit comments

Comments
 (0)