Skip to content

Commit 48a74d8

Browse files
committed
bug fix
1 parent 1c8715c commit 48a74d8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

vcast_exec.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def runPcLintPlusMetrics(self):
340340
print("PC-lint Plus Metrics file: " + report_name)
341341
generate_pclp_reports.generate_reports(self.pclp_input, output_gitlab = report_name)
342342

343-
if args.pclp_output_html:
343+
if self.pclp_output_html:
344344
print("Creating PC-lint Plus Findings")
345345
generate_pclp_reports.generate_html_report(self.FullMP, self.pclp_input, self.pclp_output_html)
346346

@@ -517,7 +517,12 @@ def runExec(self):
517517
os.environ['VCAST_USE_CI_LICENSES'] = "1"
518518

519519
os.environ['VCAST_MANAGE_PROJECT_DIRECTORY'] = os.path.abspath(args.ManageProject).rsplit(".",1)[0]
520-
520+
521+
if not os.path.isfile(args.ManageProject):
522+
print ("Manage project (.vcm file) provided does not exist: " + args.ManageProject)
523+
print ("exiting...")
524+
sys.exit(-1)
525+
521526
vcExec = VectorCASTExecute(args)
522527

523528
if args.build_execute or args.build:

0 commit comments

Comments
 (0)