Skip to content

Commit 1c23668

Browse files
committed
update permissions and unit tests
unit tests actually required us to register both files so it worked as expected
1 parent 313e2bd commit 1c23668

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

python/src/otel/otel_sdk/otel-handler

100644100755
File mode changed.

python/src/otel/tests/test_otel.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)