Add expectJson flag to onos:apps function
Change-Id: I3d152b764ae569b19adc48af73fb70e1ba224a4c
diff --git a/TestON/drivers/common/cli/onosclidriver.py b/TestON/drivers/common/cli/onosclidriver.py
index b09fa70..4bfd45a 100755
--- a/TestON/drivers/common/cli/onosclidriver.py
+++ b/TestON/drivers/common/cli/onosclidriver.py
@@ -3795,13 +3795,15 @@
# "features":"[onos-openflow]","state":"ACTIVE"}]
try:
cmdStr = "onos:apps"
+ expectJson = False
if summary:
cmdStr += " -s"
if active:
cmdStr += " -a"
if jsonFormat:
cmdStr += " -j"
- output = self.sendline( cmdStr )
+ expectJson = True
+ output = self.sendline( cmdStr, expectJson=expectJson )
assert output is not None, "Error in sendline"
assert "Command not found:" not in output, output
assert "Error executing command" not in output, output