Skip to content

Commit c27fee7

Browse files
committed
Fixed typos and unbalanced quotes in windows single template
1 parent 3dd267f commit c27fee7

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

src/main/resources/scripts/baselineSingleJobWindows.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ if "%VCAST_USE_STRICT_IMPORT%"=="TRUE" (
2020
:: Use Imported Results
2121
if "%VCAST_USE_IMPORTED_RESULTS%"=="TRUE" (
2222
if "%VCAST_USE_LOCAL_IMPORTED_RESULTS%"=="TRUE" if exist "%VCAST_PROJECT_BASENAME%_results.vcr" (
23-
%VECTORCAST_DIR%\vpython "%WORKSPACE%\vc_scripts\managewait.py" --wait_time %VCAST_WAIT_TIME% --wait_loops %VCAST_WAIT_LOOPS% --command_line "--project %VCAST_PROJECT_NAME% --import-result="%VCAST_PROJECT_BASENAME%_results.vcr""
23+
%VECTORCAST_DIR%\vpython "%WORKSPACE%\vc_scripts\managewait.py" --wait_time %VCAST_WAIT_TIME% --wait_loops %VCAST_WAIT_LOOPS% --command_line "--project %VCAST_PROJECT_NAME% --import-result=""%VCAST_PROJECT_BASENAME%_results.vcr"""
2424
%VECTORCAST_DIR%\vpython "%WORKSPACE%\vc_scripts\managewait.py" --wait_time %VCAST_WAIT_TIME% --wait_loops %VCAST_WAIT_LOOPS% --command_line "--project %VCAST_PROJECT_NAME% --full-status""
2525
if exist %VCAST_PROJECT_BASENAME%_results.vcr ( copy %VCAST_PROJECT_BASENAME%_results.vcr %VCAST_PROJECT_BASENAME%_results_orig.vcr )
2626
)
2727
if "%VCAST_USE_EXTERNAL_IMPORTED_RESULTS%"=="TRUE" if exist "%VCAST_USE_EXTERNAL_FILENAME%" (
28-
%VECTORCAST_DIR%\vpython "%WORKSPACE%\vc_scripts\managewait.py" --wait_time %VCAST_WAIT_TIME% --wait_loops %VCAST_WAIT_LOOPS% --command_line "--project %VCAST_PROJECT_NAME% --import-result="%VCAST_USE_EXTERNAL_FILENAME%"
28+
%VECTORCAST_DIR%\vpython "%WORKSPACE%\vc_scripts\managewait.py" --wait_time %VCAST_WAIT_TIME% --wait_loops %VCAST_WAIT_LOOPS% --command_line "--project %VCAST_PROJECT_NAME% --import-result=""%VCAST_USE_EXTERNAL_FILENAME%"""
2929
%VECTORCAST_DIR%\vpython "%WORKSPACE%\vc_scripts\managewait.py" --wait_time %VCAST_WAIT_TIME% --wait_loops %VCAST_WAIT_LOOPS% --command_line "--project %VCAST_PROJECT_NAME% --full-status"
3030
)
3131
)
@@ -38,7 +38,7 @@ del combined_incr_rebuild.tmp > nul 2>&1
3838
del %VCAST_PROJECT_BASENAME%_full_report.html_tmp > nul 2>&1
3939
del %VCAST_PROJECT_BASENAME%_metrics_report.html_tmp > nul 2>&1
4040

41-
%VCAST_EXECUTE_PREAMBLE_WIN% %VECTORCAST_DIR%\vpython "%WORKSPACE%\vc_scripts\managewait.py" --wait_time %VCAST_WAIT_TIME% --wait_loops %VCAST_WAIT_LOOPS% --command_line "--project %VCAST_PROJECT_NAME% --build-execute %VCAST_USE_CBT% --output %VCAST_PROJECT_BASENAME%_rebuild.%VCAST_HTML_OR_TEXT%
41+
%VCAST_EXECUTE_PREAMBLE_WIN% %VECTORCAST_DIR%\vpython "%WORKSPACE%\vc_scripts\managewait.py" --wait_time %VCAST_WAIT_TIME% --wait_loops %VCAST_WAIT_LOOPS% --command_line "--project %VCAST_PROJECT_NAME% --build-execute %VCAST_USE_CBT% --output %VCAST_PROJECT_BASENAME%_rebuild.%VCAST_HTML_OR_TEXT%"
4242
copy command.log complete_build.log
4343

4444
if exist "%VCAST_PROJECT_BASENAME%_rebuild.%VCAST_HTML_OR_TEXT%" (
@@ -58,7 +58,7 @@ if "%VCAST_OPTION_USE_REPORTING%" == "TRUE" (
5858
%VECTORCAST_DIR%\vpython "%WORKSPACE%\vc_scripts\cobertura.py" --extended %VCAST_PROJECT_NAME%
5959
)
6060
%VECTORCAST_DIR%\vpython "%WORKSPACE%\vc_scripts\full_report_no_toc.py" "%VCAST_PROJECT_NAME%"
61-
%VECTORCAST_DIR%\vpython "%WORKSPACE%\vc_scripts\managewait.py" --wait_time %VCAST_WAIT_TIME% --wait_loops %VCAST_WAIT_LOOPS% --command_line "--project %VCAST_PROJECT_NAME% --create-report=aggregate --output=\"%VCAST_PROJECT_BASENAME%_aggregate_report.html"
61+
%VECTORCAST_DIR%\vpython "%WORKSPACE%\vc_scripts\managewait.py" --wait_time %VCAST_WAIT_TIME% --wait_loops %VCAST_WAIT_LOOPS% --command_line "--project %VCAST_PROJECT_NAME% --create-report=aggregate --output=""%VCAST_PROJECT_BASENAME%_aggregate_report.html"""
6262

6363
:: Use Imported Results
6464
if "%VCAST_USE_IMPORTED_RESULTS%"=="TRUE" if "%VCAST_USE_LOCAL_IMPORTED_RESULTS%"=="TRUE" (

src/main/resources/scripts/incremental_build_report_aggregator.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import sys
2828
import shutil
2929
import locale
30+
import os, shutil, glob, logging
3031

3132
# adding path
3233
workspace = os.getenv("WORKSPACE")
@@ -122,9 +123,6 @@ def parse_text_files(mpName, verbose = False):
122123
if os.path.exists(file):
123124
shutil.move(file, "rebuild_reports/"+file)
124125

125-
import os, shutil, glob, logging
126-
from bs4 import BeautifulSoup
127-
128126
def parse_html_files(mpName, verbose = False):
129127
"""
130128
Parse and merge multiple *_rebuild.html reports into one combined report.

src/main/resources/scripts/vcast_exec.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343
python_path_updates = os.path.join(os.environ['VECTORCAST_DIR'], "DATA", "python")
4444
sys.path.append(python_path_updates)
4545

46-
from datetime import datetime
47-
4846
try:
4947
import parallel_build_execute
5048
except:
@@ -478,7 +476,7 @@ def runExec(self):
478476
build_log = self.manageWait.exec_manage_command (cmd)
479477
with open(self.build_log_name,"wb") as fd:
480478
fd.write(build_log.encode(self.encFmt, "replace"))
481-
print("End runExec: " + str(datetime.now()))
479+
482480

483481
if __name__ == '__main__':
484482

@@ -539,6 +537,9 @@ def runExec(self):
539537
parser.error("ManageProject is required unless --version is specified")
540538
sys.exit(0)
541539

540+
if not args.ManageProject.endswith(".vcm"):
541+
args.ManageProject += ".vcm"
542+
542543
if args.ManageProject and not os.path.isfile(args.ManageProject):
543544
print ("Manage project (.vcm file) provided does not exist: " + args.ManageProject)
544545
print ("exiting...")
@@ -551,9 +552,6 @@ def runExec(self):
551552
if args.ci:
552553
os.environ['VCAST_USE_CI_LICENSES'] = "1"
553554

554-
if not args.ManageProject.endswith(".vcm"):
555-
args.ManageProject += ".vcm"
556-
557555
os.environ['VCAST_MANAGE_PROJECT_DIRECTORY'] = os.path.abspath(args.ManageProject).rsplit(".",1)[0]
558556

559557
if not os.path.isfile(args.ManageProject):

0 commit comments

Comments
 (0)