Skip to content

Commit 6c153ab

Browse files
committed
fix import
1 parent e0d2b59 commit 6c153ab

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/testrunner.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import sys
44
import logging
55
import re
6+
import importlib.util
67

78
from multiprocessing import Pool, Manager
89
from datetime import datetime
@@ -33,7 +34,6 @@
3334
from test_utils import KEYS_TO_DESTROY_FILE
3435
from test_utils.pytest_cache import PytestCache
3536
from test.vllm.trigger_test import test as test_vllm
36-
from .infra.test.entrypoint import main as run_new_tests
3737

3838
from src.codebuild_environment import get_codebuild_project_name
3939

@@ -437,6 +437,15 @@ def main():
437437
try:
438438
LOGGER.info(f"Running vLLM EKS EC2 tests with image: {all_image_list[0]}")
439439
if new_test_structure_enabled:
440+
spec = importlib.util.spec_from_file_location(
441+
"entrypoint",
442+
os.path.join(
443+
os.path.dirname(__file__), "..", ".infra", "test", "entrypoint.py"
444+
),
445+
)
446+
entrypoint_module = importlib.util.module_from_spec(spec)
447+
spec.loader.exec_module(entrypoint_module)
448+
run_new_tests = entrypoint_module.main
440449
LOGGER.info("Using new buildspec-based test system")
441450
run_new_tests()
442451
else:

0 commit comments

Comments
 (0)