@@ -92,11 +92,6 @@ def check_elf_file():
9292 json .dumps ({"dir" : path , "count_scanned" : count_scanned , "unsatisfied" : unsatisfied_deps }),
9393 )
9494
95- ecode , output = container .exec (["/bin/sh" , "-c" , "oc version" ])
96-
97- logging .debug (output .decode ())
98- assert ecode == 0
99-
10095 _ecode , output = container .exec (
10196 encode_python_function_execution_command_interpreter ("/usr/bin/python3" , check_elf_file )
10297 )
@@ -130,6 +125,7 @@ def check_elf_file():
130125 def test_oc_command_runs (self , image : str ):
131126 if utils .is_rstudio_image (image ):
132127 pytest .skip ("oc command is not preinstalled in RStudio images." )
128+
133129 def test_fn (container : testcontainers .core .container .DockerContainer ):
134130 ecode , output = container .exec (["/bin/sh" , "-c" , "oc version" ])
135131
@@ -141,6 +137,7 @@ def test_fn(container: testcontainers.core.container.DockerContainer):
141137 def test_skopeo_command_runs (self , image : str ):
142138 if utils .is_rstudio_image (image ):
143139 pytest .skip ("skopeo command is not preinstalled in RStudio images." )
140+
144141 def test_fn (container : testcontainers .core .container .DockerContainer ):
145142 ecode , output = container .exec (["/bin/sh" , "-c" , "skopeo --version" ])
146143
0 commit comments