Skip to content

Commit 1292c5f

Browse files
committed
Update for 102087
1 parent b61fbb8 commit 1292c5f

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

src/main/resources/scripts/baseJenkinsfile.groovy

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,11 @@ def setupManageProject() {
438438
_VECTORCAST_DIR/vpython "${env.WORKSPACE}"/vc_scripts/managewait.py --wait_time ${VC_waitTime} --wait_loops ${VC_waitLoops} --command_line "--project "${VC_Manage_Project}" ${VC_UseCILicense} --status"
439439
_VECTORCAST_DIR/vpython "${env.WORKSPACE}"/vc_scripts/managewait.py --wait_time ${VC_waitTime} --wait_loops ${VC_waitLoops} --command_line "--project "${VC_Manage_Project}" ${VC_UseCILicense} --force --release-locks"
440440
_VECTORCAST_DIR/vpython "${env.WORKSPACE}"/vc_scripts/managewait.py --wait_time ${VC_waitTime} --wait_loops ${VC_waitLoops} --command_line "--project "${VC_Manage_Project}" ${VC_UseCILicense} --config VCAST_CUSTOM_REPORT_FORMAT=HTML"
441-
"""
441+
"""
442+
443+
if (VC_useOneCheckoutDir) {
444+
cmds += """_VECTORCAST_DIR/vpython "${env.WORKSPACE}"/vc_scripts/managewait.py --wait_time ${VC_waitTime} --wait_loops ${VC_waitLoops} --command_line "--project "${VC_Manage_Project}" ${VC_UseCILicense} --config VCAST_DEPENDENCY_CACHE_DIR=./vcqik" """
445+
}
442446

443447
if (VC_useImportedResults) {
444448
if (VC_useLocalImportedResults) {

src/main/resources/scripts/generate_lcov.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,10 @@ def generateCoverageResults(inFile, xml_data_dir = "xml_data", verbose = False):
239239
if not os.path.exists(lcov_data_dir):
240240
os.makedirs(lcov_data_dir)
241241

242-
open(os.path.join(lcov_data_dir, name + "-info"), "w").write(output)
242+
fname = os.path.join(lcov_data_dir, name + "-info")
243+
open(fname, "w").write(output)
244+
245+
return fname
243246

244247
if __name__ == '__main__':
245248

@@ -252,7 +255,7 @@ def generateCoverageResults(inFile, xml_data_dir = "xml_data", verbose = False):
252255
except:
253256
inFile = os.getenv('VCV_ENVIRONMENT_FILE')
254257

255-
generateCoverageResults(inFile, xml_data_dir = "xml_data", verbose = False)
258+
infoFile = generateCoverageResults(inFile, xml_data_dir = "xml_data", verbose = False)
256259

257260
## if opened from VectorCAST GUI...
258261
if not os.getenv('VCAST_MANAGE_PROJECT_DIRECTORY') is None:

src/main/resources/scripts/vcast_exec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,8 @@ def runExec(self):
345345

346346
reportGroup = parser.add_argument_group('Report Selection', 'VectorCAST Manage reports that can be generated')
347347
reportGroup.add_argument('--aggregate', help='Generate aggregate coverage report VectorCAST Project', action="store_true", default = False)
348-
reportGroup.add_argument('--metrics', help='Genenereate metrics reports for VectorCAST Project', action="store_true", default = False)
349-
reportGroup.add_argument('--fullstatus', help='Genenereate full status reports for VectorCAST Project', action="store_true", default = False)
348+
reportGroup.add_argument('--metrics', help='Generate metrics reports for VectorCAST Project', action="store_true", default = False)
349+
reportGroup.add_argument('--fullstatus', help='Generate full status reports for VectorCAST Project', action="store_true", default = False)
350350

351351
beGroup = parser.add_argument_group('Build/Execution Options', 'Options that effect build/execute operation')
352352

0 commit comments

Comments
 (0)