Skip to content

Commit 974e29a

Browse files
author
Himanshu Setia
committed
ScriptFinder logic temporary update to use correct integtest.sh until opensearch-project#497 is fixed in plugin repos
Signed-off-by: Himanshu Setia <[email protected]>
1 parent 9032bdc commit 974e29a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

bundle-workflow/src/paths/script_finder.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ def find_build_script(cls, component_name, git_dir):
6464
@classmethod
6565
def find_integ_test_script(cls, component_name, git_dir):
6666
paths = [
67-
os.path.realpath(os.path.join(git_dir, "integtest.sh")),
68-
os.path.realpath(os.path.join(git_dir, "scripts/integtest.sh")),
67+
# TODO: Uncomment this after the integtest.sh tool is removed from plugin repos. See issue #497
68+
# os.path.realpath(os.path.join(git_dir, "integtest.sh")),
69+
# os.path.realpath(os.path.join(git_dir, "scripts/integtest.sh")),
6970
os.path.realpath(
7071
os.path.join(cls.component_scripts_path, component_name, "integtest.sh")
7172
),

bundle-workflow/tests/tests_paths/test_script_finder.py

+2
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def test_find_integ_test_script_component_override(self):
9292
msg="A component without scripts resolves to a component override.",
9393
)
9494

95+
@unittest.skip('See https://github.com/opensearch-project/opensearch-build/issues/497')
9596
def test_find_integ_test_script_component_script(self):
9697
self.assertEqual(
9798
os.path.join(self.component_with_scripts, "integtest.sh"),
@@ -101,6 +102,7 @@ def test_find_integ_test_script_component_script(self):
101102
msg="A component with a script resolves to the script at the root.",
102103
)
103104

105+
@unittest.skip('See https://github.com/opensearch-project/opensearch-build/issues/497')
104106
def test_find_integ_test_script_component_script_in_folder(self):
105107
self.assertEqual(
106108
os.path.join(self.component_with_scripts_folder, "scripts/integtest.sh"),

0 commit comments

Comments
 (0)