CI: Make output for .env test less verbose
This commit is contained in:
committed by
Robert Schmidt
parent
a80c17cc31
commit
cf870d7ae9
@@ -167,7 +167,7 @@ def GetContainerHealth(ssh, containerName):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def ExistEnvFilePrint(ssh, wd, prompt='env vars in existing'):
|
def ExistEnvFilePrint(ssh, wd, prompt='env vars in existing'):
|
||||||
ret = ssh.run(f'cat {wd}/.env', silent=True)
|
ret = ssh.run(f'cat {wd}/.env', silent=True, reportNonZero=False)
|
||||||
if ret.returncode != 0:
|
if ret.returncode != 0:
|
||||||
return False
|
return False
|
||||||
env_vars = ret.stdout.strip().splitlines()
|
env_vars = ret.stdout.strip().splitlines()
|
||||||
@@ -175,7 +175,7 @@ def ExistEnvFilePrint(ssh, wd, prompt='env vars in existing'):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def WriteEnvFile(ssh, services, wd, tag):
|
def WriteEnvFile(ssh, services, wd, tag):
|
||||||
ret = ssh.run(f'cat {wd}/.env', silent=True)
|
ret = ssh.run(f'cat {wd}/.env', silent=True, reportNonZero=False)
|
||||||
registry = "oai-ci" # pull_images() gives us this registry path
|
registry = "oai-ci" # pull_images() gives us this registry path
|
||||||
envs = {"REGISTRY":registry, "TAG": tag}
|
envs = {"REGISTRY":registry, "TAG": tag}
|
||||||
if ret.returncode == 0: # it exists, we have to update
|
if ret.returncode == 0: # it exists, we have to update
|
||||||
|
|||||||
Reference in New Issue
Block a user