File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,11 @@ def setUpClass(cls):
176176 'export LAMBDA_LAYER_PKGS_DIR="/opt/python"' ,
177177 f'export LAMBDA_LAYER_PKGS_DIR="{ TOX_PYTHON_DIRECTORY } "' ,
178178 )
179+ replace_in_file (
180+ os .path .join (INIT_OTEL_SCRIPTS_DIR , "otel-instrument" ),
181+ 'export LAMBDA_LAYER_PKGS_DIR="/opt/python"' ,
182+ f'export LAMBDA_LAYER_PKGS_DIR="{ TOX_PYTHON_DIRECTORY } "' ,
183+ )
179184
180185 def setUp (self ):
181186 super ().setUp ()
@@ -203,6 +208,11 @@ def tearDownClass(cls):
203208 f'export LAMBDA_LAYER_PKGS_DIR="{ TOX_PYTHON_DIRECTORY } "' ,
204209 'export LAMBDA_LAYER_PKGS_DIR="/opt/python"' ,
205210 )
211+ replace_in_file (
212+ os .path .join (INIT_OTEL_SCRIPTS_DIR , "otel-instrument" ),
213+ f'export LAMBDA_LAYER_PKGS_DIR="{ TOX_PYTHON_DIRECTORY } "' ,
214+ 'export LAMBDA_LAYER_PKGS_DIR="/opt/python"' ,
215+ )
206216
207217 def test_active_tracing (self ):
208218 test_env_patch = mock .patch .dict (
You can’t perform that action at this time.
0 commit comments