[Commit slider] AC job improvements (#24002)

### Details:
 - *item1*
 - *...*

### Tickets:
 - *ticket-id*
This commit is contained in:
Yury Gaydaychuk 2024-04-29 14:16:12 +02:00 committed by GitHub
parent 34e5f2479f
commit 55ff3aa3e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 4 deletions

View File

@ -135,8 +135,6 @@ class Mode(ABC):
# fetch paths for dlb job
if cfg["dlbConfig"]["launchedAsJob"]:
cfg["appPath"] = cfg["dlbConfig"]["appPath"]
if cfg["dlbConfig"]["appCmd"] != "" :
cfg["appCmd"] = cfg["dlbConfig"]["appCmd"]
# switch off illegal check
if not self.traversal.isComparative():
cfg["checkIfBordersDiffer"] = False

View File

@ -11,7 +11,7 @@ try:
except:
import subprocess
import sys
p = subprocess.Popen('{py} -m pip install pyyaml'.format(
p = subprocess.Popen('{} -m pip install pyyaml'.format(
sys.executable
),
shell=True,

View File

@ -286,10 +286,14 @@ def fetchAppOutput(cfg, commit):
output = ""
if cfg["venvCfg"]["venvEnabled"]:
# todo - move to substitution rules
for item in [
{"src": cfg["venvCfg"]["venvName"], "dst": "venvName"},
{"src": cfg["appPath"], "dst": "appPath"},
{"src": sys.executable, "dst": "py"}
{"src": sys.executable, "dst": "py"},
# for AC case
{"src": cfg["dlbConfig"]["appCmd"], "dst": "appCmd"},
{"src": cfg["dlbConfig"]["toolPath"], "dst": "toolPath"}
]:
appCmd = multistepStrFormat(
appCmd,