I've just resolved an issue I had with itestcli. It appears that the issue was a result of itestcli returning before the test case completes.
I had two test cases that I was calling one after the other. The first test case records the output from some commands related to the operation of multicast on a Cisco router.
The 2nd test case is not really a test case - it's really an orchestration step as it removes some config from the router which results in multicast being disabled.
What is happening is that the first test case (record multicast stats) is invoked and it returns immediately i.e. the system call to invoke the itestcli returns and the next test case (remove multicast config) is invoked. The 2nd test case disables the multicast before the 1st one gets the chance to get all of the stats so some commands result in no output because the multicast is disabled.
I had assumed that the itestcli would not return until the testcase that it runs has completed.
Is there a parameter that I can add to force this behaviour ??
I have worked around this behaviour by introducing a delay but this is not ideal as a proper solution.
Any assistance appreciated.