Re: how to optimize the below code with a helper function

2016-04-04 Thread Martin A. Brown
Hello again, >(1) Any tips how I can optimize this i.e test case, should have a >helper function that all test cases call. > >(2) Also note that failure.run_tool function can have variable >number of argments how to handle this in the helper function? Here's a little example of how you could

Re: how to optimize the below code with a helper function

2016-04-04 Thread Martin A. Brown
Greetings (again) Ganesh, I notice that you ask about how to optimize the code, but I think what you mean is you want simpler code that is less repetitive and less copy/paste error-prone. Is that correct? Below, I make a few suggestions about how to simplify, although, there probably is furt