File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
azure-functions-language-worker-protobuf/src/proto
test/WebJobs.Script.Tests/Workers/Rpc Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,8 @@ internal WorkerInitRequest GetWorkerInitRequest()
228
228
return new WorkerInitRequest ( )
229
229
{
230
230
HostVersion = ScriptHost . Version ,
231
- WorkerDirectory = _workerConfig . Description . WorkerDirectory
231
+ WorkerDirectory = _workerConfig . Description . WorkerDirectory ,
232
+ FunctionAppDirectory = _applicationHostOptions . CurrentValue . ScriptPath
232
233
} ;
233
234
}
234
235
Original file line number Diff line number Diff line change @@ -113,6 +113,9 @@ message WorkerInitRequest {
113
113
114
114
// Full path of worker.config.json location
115
115
string worker_directory = 4 ;
116
+
117
+ // base directory for function app
118
+ string function_app_directory = 5 ;
116
119
}
117
120
118
121
// Worker responds with the result of initializing itself
Original file line number Diff line number Diff line change @@ -225,8 +225,10 @@ public void WorkerInitRequest_Expected()
225
225
{
226
226
WorkerInitRequest initRequest = _workerChannel . GetWorkerInitRequest ( ) ;
227
227
Assert . NotNull ( initRequest . WorkerDirectory ) ;
228
+ Assert . NotNull ( initRequest . FunctionAppDirectory ) ;
228
229
Assert . NotNull ( initRequest . HostVersion ) ;
229
230
Assert . Equal ( "testDir" , initRequest . WorkerDirectory ) ;
231
+ Assert . Equal ( _scriptRootPath , initRequest . FunctionAppDirectory ) ;
230
232
Assert . Equal ( ScriptHost . Version , initRequest . HostVersion ) ;
231
233
}
232
234
You can’t perform that action at this time.
0 commit comments