From 84170f0ad0498210319520d3852d6dc8a0a516b9 Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Mon, 9 Oct 2017 14:27:58 +0200 Subject: [PATCH] Closedown --- script/pio.py | 69 +---------------------------------- script/tests/tests.properties | 2 +- 2 files changed, 3 insertions(+), 68 deletions(-) diff --git a/script/pio.py b/script/pio.py index 4f194fc..bc73785 100644 --- a/script/pio.py +++ b/script/pio.py @@ -11,75 +11,10 @@ global print_log, sendFeedback, sys, inspect, os, traceback import sys, inspect, os, traceback class pio: - """ - Common tools for running the test - """ - def __init__(self): - """ - Init class with test data - """ self.log('ecco pio') - - def getParam(self, paramName): - """ - get specific test parameter - paramName = the name of the parameter for which the value must be read - """ - try: - return self.testParams[paramName]["value"] - except: - self.log('Could not retrieve testing parameter ' + paramName + ' - Details: ' + traceback.format_exc()) - return None - - - def getName(self): - """ - get test name - """ - return self.testName - - - def getPlotName(self): - """ - get test plot name - """ - return self.deviceName + ' - ' + self.testName - - - def getDeviceName(self): - """ - get device name - """ - return self.deviceName - - - def getPath(self): - """ - get test path - """ - return self.testPath - - def log(self, text): - """ - Print/log information - text = the string to be printed/logged - """ - import time - time.ctime() - now = time.strftime('%Y.%m.%d %H:%M:%S') - logText = self.deviceName + ' - ' + self.testName + ': ' + str(text) - print now + ' ' + logText - try: - log(logText) - except: - #cannot write log. maybe busy? Wait and retry - time.sleep(1) - try: - log(logText) - except: - #cannot write log - print now + ' ' + self.deviceName + ' - ' + self.testName + ': ' + 'cannot write Log in Data' + print str(text) + diff --git a/script/tests/tests.properties b/script/tests/tests.properties index 77f17fc..f67d943 100644 --- a/script/tests/tests.properties +++ b/script/tests/tests.properties @@ -1,5 +1,5 @@ #TestingList for pshell: configuration properties -#Mon Oct 09 14:19:31 CEST 2017 +#Mon Oct 09 14:27:52 CEST 2017 customPanel= showEnabledTestsOnly=true listFilter=rps-try