File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11"""
22Utility functions for working interacting with docker / podman CLI
33"""
4- import os
54import re
65import sys
76from pathlib import Path
@@ -215,7 +214,6 @@ def run_tool(
215214 """
216215 if entrypoint :
217216 entrypoint = f" --entrypoint { entrypoint } "
218- os .chdir (Path (__file__ ).parent )
219217 cwd = Path .cwd ().resolve ()
220218 mount = f"-w { cwd } -v { cwd } :{ cwd } -v /tmp:/tmp"
221219 run_command (
Original file line number Diff line number Diff line change 105105 rsp : bl45p-ea-ioc-01%2023.10.9%Up%an image
106106
107107validate :
108- - cmd : docker run --rm -w .*epics_containers_cli -v .*epics_containers_cli :.*epics_containers_cli -v \/tmp:\/tmp ghcr.io\/epics-containers\/yajsv -s \/tmp\/ec_tests\/schema.json .*epics-containers-cli\/tests\/data\/iocs\ /bl45p-ea-ioc-01\/config\/ioc.yaml
108+ - cmd : docker run --rm -w .* -v .*:.* -v \/tmp:\/tmp ghcr.io\/epics-containers\/yajsv -s \/tmp\/ec_tests\/schema.json .*/bl45p-ea-ioc-01\/config\/ioc.yaml
109109 rsp : True
110110 - cmd : docker manifest inspect ghcr.io\/epics-containers\/ioc-adaravis-linux-runtime:23.9.4
111111 rsp : " OK"
Original file line number Diff line number Diff line change 22tests for local docker deployment/management commands
33"""
44
5+ import os
56import shutil
7+ from pathlib import Path
68
79from tests .conftest import TMPDIR
810
@@ -67,4 +69,5 @@ def test_ps(mock_run, local):
6769
6870def test_validate (mock_run , local , data ):
6971 mock_run .set_seq (local .setup + local .validate )
72+ os .chdir (Path (__file__ ).parent )
7073 mock_run .run_cli (f"ioc validate { data / 'iocs/bl45p-ea-ioc-01' } " )
You can’t perform that action at this time.
0 commit comments