Skip to content

Commit

Permalink
Fixing Crank test app paths (#6655)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewc authored Sep 16, 2020
1 parent 95ac217 commit ee89699
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
6 changes: 2 additions & 4 deletions tools/Crank/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ scenarios:
application:
job: functionsServer
environmentVariables:
HOME: "{{ TempPath }}"
HOME: "{{ HomePath }}"
WEBSITE_SITE_NAME: "Test"
WEBSITE_INSTANCE_ID: "8399B720-AB73-46D6-94DE-5A27871B3155"
WEBSITE_OWNER_NAME: "A5F47496-A284-4788-A127-E79454330567+westuswebspace"
AzureWebJobsScriptRoot: "{{ FunctionAppPath }}"
ASPNETCORE_URLS: "{{ AspNetUrls }}"
load:
job: bombardier
Expand All @@ -46,12 +45,11 @@ scenarios:
application:
job: functionsServer
environmentVariables:
HOME: "{{ TempPath }}"
HOME: "{{ HomePath }}"
WEBSITE_SITE_NAME: "Test"
WEBSITE_INSTANCE_ID: "8399B720-AB73-46D6-94DE-5A27871B3155"
WEBSITE_OWNER_NAME: "A5F47496-A284-4788-A127-E79454330567+westuswebspace"
FUNCTIONS_LOGS_MOUNT_PATH: "{{ TempLogPath }}"
AzureWebJobsScriptRoot: "{{ FunctionAppPath }}"
ASPNETCORE_URLS: "{{ AspNetUrls }}"
load:
job: bombardier
Expand Down
11 changes: 3 additions & 8 deletions tools/Crank/run-benchmarks.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,8 @@ $crankConfigPath = Join-Path `

$isLinuxApp = $CrankAgentVm -match '\blinux\b'

$functionAppPath = if ($isLinuxApp) {
"/home/$UserName/FunctionApps/$FunctionApp"
} else {
"C:\FunctionApps\$FunctionApp"
}

$tmpPath = if ($isLinuxApp) { "/tmp" } else { 'C:\Temp' }
$homePath = if ($isLinuxApp) { "/home/$UserName/FunctionApps/$FunctionApp" } else { "C:\FunctionApps\$FunctionApp" }
$functionAppPath = if ($isLinuxApp) { "/home/$UserName/FunctionApps/$FunctionApp/site/wwwroot" } else { "C:\FunctionApps\$FunctionApp\site\wwwroot" }
$tmpLogPath = if ($isLinuxApp) { "/tmp/functions/log" } else { 'C:\Temp\Functions\Log' }

if ($UseHttps) {
Expand All @@ -88,7 +83,7 @@ $crankArgs =
'--profile', $profileName,
'--variable', "CrankAgentVm=$CrankAgentVm",
'--variable', "FunctionAppPath=`"$functionAppPath`"",
'--variable', "TempPath=`"$tmpPath`"",
'--variable', "HomePath=`"$homePath`"",
'--variable', "TempLogPath=`"$tmpLogPath`"",
'--variable', "BranchOrCommit=$BranchOrCommit",
'--variable', "AspNetUrls=$aspNetUrls"
Expand Down

0 comments on commit ee89699

Please sign in to comment.