From edfca94426e74005f051ca9d9cab5e20b2129f3c Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Fri, 17 May 2024 17:15:08 -0700 Subject: [PATCH] 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 --- eng/common/testproxy/test-proxy-tool.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/common/testproxy/test-proxy-tool.yml b/eng/common/testproxy/test-proxy-tool.yml index d520c7689..b6cff5591 100644 --- a/eng/common/testproxy/test-proxy-tool.yml +++ b/eng/common/testproxy/test-proxy-tool.yml @@ -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"