Commit d5413e83 authored by Mohammed Ismail's avatar Mohammed Ismail

CI: print oc login output

Signed-off-by: default avatarMohammed Ismail <mohammed.ismail@openairinterface.org>
parent d4fbeb14
......@@ -121,6 +121,7 @@ class PhySim:
# logging to OC cluster
mySSH.command('oc login -u {self.OCUserName} -p {self.OCPassword}', '\$', 6)
print(mySSH.getBefore())
if mySSH.getBefore().count('Login successful.') == 0:
logging.error('\u001B[1m OC Cluster Login Failed\u001B[0m')
sys.exit(-1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment