Sync eng/common directory with azure-sdk-tools for PR 8295 (#5639)

* ensure we write the log to the same root directory as what is being used for the proxy invocation

* fix spacing

* we should write these proxy logs to the same root folder that we start the proxy in

---------

Co-authored-by: Scott Beddall <scbedd@microsoft.com>
This commit is contained in:
Azure SDK Bot 2024-05-17 17:15:08 -07:00 committed by GitHub
parent afb41afa58
commit edfca94426
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,8 +63,8 @@ steps:
# nohup does NOT continue beyond the current session if you use it within powershell
- bash: |
nohup $(Build.BinariesDirectory)/test-proxy/test-proxy &>$(Build.SourcesDirectory)/test-proxy.log &
nohup $(Build.BinariesDirectory)/test-proxy/test-proxy &>${{ parameters.rootFolder }}/test-proxy.log &
echo $! > $(Build.SourcesDirectory)/test-proxy.pid
echo "##vso[task.setvariable variable=PROXY_PID]$(cat $(Build.SourcesDirectory)/test-proxy.pid)"
displayName: "Run the testproxy - linux/mac"