Skip to content

Commit 0fdc039

Browse files
More tweaks
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
1 parent ec7369f commit 0fdc039

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/tests_test_workflow/test_integ_workflow/integ_test/test_distribution_deb.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_install(self, check_call_mock: Mock) -> None:
4444
"sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD=myStrongPassword123! "
4545
"dpkg --install opensearch.deb && "
4646
f"sudo chmod 0666 {self.distribution_deb.config_path} && "
47-
"sudo chmod 0755 /etc/opensearch /var/log/opensearch"
47+
f"sudo chmod 0755 {os.path.dirname(self.distribution_deb.config_path)} {self.distribution_deb.log_dir}"
4848
),
4949
args_list[0][0][0],
5050
)

tests/tests_test_workflow/test_integ_workflow/integ_test/test_distribution_rpm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_install(self, check_call_mock: Mock) -> None:
4444
"sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD=myStrongPassword123! "
4545
"yum install -y opensearch.rpm && "
4646
f"sudo chmod 0666 {self.distribution_rpm.config_path} && "
47-
"sudo chmod 0755 /etc/opensearch /var/log/opensearch"
47+
f"sudo chmod 0755 {os.path.dirname(self.distribution_rpm.config_path)} {self.distribution_rpm.log_dir}"
4848
),
4949
args_list[0][0][0],
5050
)

0 commit comments

Comments
 (0)