Fix bug with steps
- Fix bug where main.step()'s called in functions or loops did
not get properly added to the results
Change-Id: Iba8aa65f1d6128362f759f351efec770139887b9
diff --git a/TestON/core/utilities.py b/TestON/core/utilities.py
index 8cd81e5..8822aab 100644
--- a/TestON/core/utilities.py
+++ b/TestON/core/utilities.py
@@ -185,6 +185,11 @@
print e
main.last_result = result
+ main.stepResults[2][-1] = result
+ try:
+ main.stepResults[3][-1] = arguments[ 'ONFAIL' ]
+ except AttributeError:
+ pass
return result
def parse_args(self,args, **kwargs):