From 06d8e9736311cc381446abef6a29275b6f7ab7c9 Mon Sep 17 00:00:00 2001 From: Giles Knap Date: Fri, 17 May 2024 17:05:21 +0100 Subject: [PATCH] base the system test on ioc-template-example Makes for faster test and decouples from arbitrary other repo --- tests/test_system.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_system.py b/tests/test_system.py index 7c2f1c6d6..59f5272a3 100644 --- a/tests/test_system.py +++ b/tests/test_system.py @@ -38,16 +38,16 @@ def test_container_build_and_run(tmp_path: Path): """ make sure that a container build works and that the container can run an IOC """ - ils = "ioc-lakeshore340" + ioc = "ioc-template-example" # get the lakeshore generic container source os.chdir(tmp_path) - run_command(f"git clone https://github.com/epics-containers/{ils}") + run_command(f"git clone https://github.com/epics-containers/{ioc}") # patch the dockerfile to include this version of ibek ibek = Path(__file__).parent.parent - shutil.copytree(ibek, tmp_path / ils / "ibek") - docker = tmp_path / ils / "Dockerfile" + shutil.copytree(ibek, tmp_path / ioc / "ibek") + docker = tmp_path / ioc / "Dockerfile" text = docker.read_text() this_ibek = "COPY ibek ibek\nRUN pip install ./ibek" text = re.sub(r"RUN pip install.*\n", this_ibek, text) @@ -55,7 +55,7 @@ def test_container_build_and_run(tmp_path: Path): print(text) # build the container with latest ibek and latest ibek-support - os.chdir(ils) + os.chdir(ioc) run_command("git submodule update --init") run_command("cd ibek-support && git checkout main") run_command("./build")