user stop handling

messages logged in Data log
amound of messages reduced
This commit is contained in:
boccioli_m
2015-09-04 16:25:31 +02:00
parent 67d985aa17
commit 84b317c70c
6 changed files with 22 additions and 3 deletions
Binary file not shown.
+5
View File
@@ -125,6 +125,11 @@ def startTest(testName, DEVICE, params):
#just in case the feedback was forgotten
test.sendFeedback(ret, success)
except (KeyboardInterrupt):
#user stop error handler
ret = 'Test stopped by user.'
success = False
test.sendFeedback(ret, success)
except:
#generic error handler
ret = traceback.format_exc()
@@ -100,6 +100,11 @@ def startTest(testName, DEVICE, params):
#just in case the feedback was forgotten
test.sendFeedback(ret, success)
except (KeyboardInterrupt):
#user stop error handler
ret = 'Test stopped by user.'
success = False
test.sendFeedback(ret, success)
except:
#generic error handler
ret = traceback.format_exc()
@@ -95,6 +95,11 @@ def startTest(testName, DEVICE, params):
#just in case the feedback was forgotten
test.sendFeedback(ret, success)
except (KeyboardInterrupt):
#user stop error handler
ret = 'Test stopped by user.'
success = False
test.sendFeedback(ret, success)
except:
#generic error handler
ret = traceback.format_exc()
@@ -136,6 +136,11 @@ def startTest(testName, DEVICE, params):
#just in case the feedback was forgotten
test.sendFeedback(ret, success)
except (KeyboardInterrupt):
#user stop error handler
ret = 'Test stopped by user.'
success = False
test.sendFeedback(ret, success)
except:
#generic error handler
ret = traceback.format_exc()