This repository was archived by the owner on Dec 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-28
lines changed Expand file tree Collapse file tree 1 file changed +1
-28
lines changed Original file line number Diff line number Diff line change @@ -153,34 +153,7 @@ def _start_sut(self) -> None:
153153 """
154154 Start a new SUT and return it initialized.
155155 """
156- testcases = os .path .join (self ._ltpdir , "testcases" , "bin" )
157-
158- sut_env = {}
159- sut_env ["PATH" ] = "/sbin:/usr/sbin:/usr/local/sbin:" + \
160- f"/root/bin:/usr/local/bin:/usr/bin:/bin:{ testcases } "
161- sut_env ["LTPROOT" ] = self ._ltpdir
162- sut_env ["TMPDIR" ] = self ._tmpdir .root if self ._tmpdir .root else "/tmp"
163- sut_env ["LTP_TIMEOUT_MUL" ] = str ((self ._exec_timeout * 0.9 ) / 300.0 )
164-
165- if self ._no_colors :
166- sut_env ["LTP_COLORIZE_OUTPUT" ] = "0"
167- else :
168- sut_env ["LTP_COLORIZE_OUTPUT" ] = "1"
169-
170- if self ._env :
171- for key , value in self ._env .items ():
172- if key not in sut_env :
173- self ._logger .info (
174- "Add %s=%s environment variable into SUT" )
175- sut_env [key ] = value
176-
177- config = {}
178- config ['env' ] = sut_env
179- config ['cwd' ] = testcases
180- config ['tmpdir' ] = self ._tmpdir .abspath
181- config .update (self ._sut_config )
182-
183- self ._sut .setup (** config )
156+ self ._sut .setup (** self ._sut_config )
184157
185158 ltp .events .fire ("sut_start" , self ._sut .name )
186159
You can’t perform that action at this time.
0 commit comments