Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 606a4a5

Browse files
author
José Rivero
authored
Fixing the usage of truncated options. (#14469)
1 parent 874735e commit 606a4a5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

perf.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def static getOSGroup(def os) {
9393
batchFile("if \"%GIT_BRANCH:~0,7%\" == \"origin/\" (set \"GIT_BRANCH_WITHOUT_ORIGIN=%GIT_BRANCH:origin/=%\") else (set \"GIT_BRANCH_WITHOUT_ORIGIN=%GIT_BRANCH%\")\n" +
9494
"set \"BENCHVIEWNAME=${benchViewName}\"\n" +
9595
"set \"BENCHVIEWNAME=%BENCHVIEWNAME:\"=%\"\n" +
96-
"py \"%WORKSPACE%\\Microsoft.BenchView.JSONFormat\\tools\\submission-metadata.py\" --name \"%BENCHVIEWNAME%\" --user \"[email protected]\"\n" +
96+
"py \"%WORKSPACE%\\Microsoft.BenchView.JSONFormat\\tools\\submission-metadata.py\" --name \"%BENCHVIEWNAME%\" --user-email \"[email protected]\"\n" +
9797
"py \"%WORKSPACE%\\Microsoft.BenchView.JSONFormat\\tools\\build.py\" git --branch %GIT_BRANCH_WITHOUT_ORIGIN% --type ${runType}")
9898
batchFile("py \"%WORKSPACE%\\Microsoft.BenchView.JSONFormat\\tools\\machinedata.py\"")
9999
batchFile("set __TestIntermediateDir=int&&build.cmd ${configuration} ${architecture}")
@@ -202,7 +202,7 @@ def static getOSGroup(def os) {
202202
batchFile("if \"%GIT_BRANCH:~0,7%\" == \"origin/\" (set \"GIT_BRANCH_WITHOUT_ORIGIN=%GIT_BRANCH:origin/=%\") else (set \"GIT_BRANCH_WITHOUT_ORIGIN=%GIT_BRANCH%\")\n" +
203203
"set \"BENCHVIEWNAME=${benchViewName}\"\n" +
204204
"set \"BENCHVIEWNAME=%BENCHVIEWNAME:\"=%\"\n" +
205-
"py \"%WORKSPACE%\\Microsoft.BenchView.JSONFormat\\tools\\submission-metadata.py\" --name \"${benchViewName}\" --user \"[email protected]\"\n" +
205+
"py \"%WORKSPACE%\\Microsoft.BenchView.JSONFormat\\tools\\submission-metadata.py\" --name \"${benchViewName}\" --user-email \"[email protected]\"\n" +
206206
"py \"%WORKSPACE%\\Microsoft.BenchView.JSONFormat\\tools\\build.py\" git --branch %GIT_BRANCH_WITHOUT_ORIGIN% --type ${runType}")
207207
batchFile("py \"%WORKSPACE%\\Microsoft.BenchView.JSONFormat\\tools\\machinedata.py\"")
208208
batchFile("set __TestIntermediateDir=int&&build.cmd ${configuration} ${architecture} skiptests")
@@ -272,7 +272,7 @@ def static getOSGroup(def os) {
272272
shell("./init-tools.sh")
273273
shell("./build.sh ${architecture} ${configuration}")
274274
shell("GIT_BRANCH_WITHOUT_ORIGIN=\$(echo \$GIT_BRANCH | sed \"s/[^/]*\\/\\(.*\\)/\\1 /\")\n" +
275-
"python3.5 \"\${WORKSPACE}/tests/scripts/Microsoft.BenchView.JSONFormat/tools/submission-metadata.py\" --name \" ${benchViewName} \" --user \"[email protected]\"\n" +
275+
"python3.5 \"\${WORKSPACE}/tests/scripts/Microsoft.BenchView.JSONFormat/tools/submission-metadata.py\" --name \" ${benchViewName} \" --user-email \"[email protected]\"\n" +
276276
"python3.5 \"\${WORKSPACE}/tests/scripts/Microsoft.BenchView.JSONFormat/tools/build.py\" git --branch \$GIT_BRANCH_WITHOUT_ORIGIN --type ${runType}")
277277
shell("""./tests/scripts/run-xunit-perf.sh \\
278278
--testRootDir=\"\${WORKSPACE}/bin/tests/Windows_NT.${architecture}.${configuration}\" \\
@@ -354,7 +354,7 @@ def static getOSGroup(def os) {
354354
shell("./init-tools.sh")
355355
shell("./build.sh ${architecture} ${configuration}")
356356
shell("GIT_BRANCH_WITHOUT_ORIGIN=\$(echo \$GIT_BRANCH | sed \"s/[^/]*\\/\\(.*\\)/\\1 /\")\n" +
357-
"python3.5 \"\${WORKSPACE}/tests/scripts/Microsoft.BenchView.JSONFormat/tools/submission-metadata.py\" --name \" ${benchViewName} \" --user \"[email protected]\"\n" +
357+
"python3.5 \"\${WORKSPACE}/tests/scripts/Microsoft.BenchView.JSONFormat/tools/submission-metadata.py\" --name \" ${benchViewName} \" --user-email \"[email protected]\"\n" +
358358
"python3.5 \"\${WORKSPACE}/tests/scripts/Microsoft.BenchView.JSONFormat/tools/build.py\" git --branch \$GIT_BRANCH_WITHOUT_ORIGIN --type ${runType}")
359359
shell("""python3.5 ./tests/scripts/run-throughput-perf.py \\
360360
-arch \"${architecture}\" \\

tests/scripts/run-xunit-perf.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ setlocal
334334
set LV_SUBMISSION_ARGS=%LV_SUBMISSION_ARGS% --config Configuration "%TEST_CONFIG%"
335335
set LV_SUBMISSION_ARGS=%LV_SUBMISSION_ARGS% --config OS "Windows_NT"
336336
set LV_SUBMISSION_ARGS=%LV_SUBMISSION_ARGS% --config Profile "%ETW_COLLECTION%"
337-
set LV_SUBMISSION_ARGS=%LV_SUBMISSION_ARGS% --arch "%TEST_ARCHITECTURE%"
337+
set LV_SUBMISSION_ARGS=%LV_SUBMISSION_ARGS% --architecture "%TEST_ARCHITECTURE%"
338338
set LV_SUBMISSION_ARGS=%LV_SUBMISSION_ARGS% --machinepool "PerfSnake"
339339

340340
call :run_cmd py.exe "%BENCHVIEW_PATH%\submission.py" measurement.json %LV_SUBMISSION_ARGS%

tests/scripts/run-xunit-perf.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ if [ -d "$BENCHVIEW_TOOLS_PATH" ]; then
393393
args+=" --config Configuration Release"
394394
args+=" --config OS $benchViewOS"
395395
args+=" --config Profile $perfCollection"
396-
args+=" --arch x64"
396+
args+=" --architecture x64"
397397
args+=" --machinepool Perfsnake"
398398
run_command python3.5 "$BENCHVIEW_TOOLS_PATH/submission.py" $args || {
399399
echo [ERROR] Failed to generate BenchView submission data;

0 commit comments

Comments
 (0)