tps/test: remove TpsUser exceptions to facilitate the work to operators.

parent c136b56b
...@@ -262,7 +262,7 @@ class EEPROM_GENNUM: ...@@ -262,7 +262,7 @@ class EEPROM_GENNUM:
if written == len(file_data): if written == len(file_data):
print 'EEPROM written with '+file_name+' content!' print 'EEPROM written with '+file_name+' content!'
else : else :
raise TpsUser ("ERROR writting to the EEPROM: Written lenght doesn't correspond with the length of the file.") raise TpsError ("ERROR writting to the EEPROM: Written lenght doesn't correspond with the length of the file.")
return 0 return 0
def compare_eeprom_with_file(self, file_name): def compare_eeprom_with_file(self, file_name):
...@@ -292,7 +292,7 @@ class EEPROM_GENNUM: ...@@ -292,7 +292,7 @@ class EEPROM_GENNUM:
if file_data[i] == eeprom_data[i]: if file_data[i] == eeprom_data[i]:
print 'EEPROM= %.2X, FILE= %.2X => OK' %(eeprom_data[i],file_data[i]) print 'EEPROM= %.2X, FILE= %.2X => OK' %(eeprom_data[i],file_data[i])
else : else :
raise TpsUser('EEPROM= %.2X, FILE= %.2X => ERROR' %(eeprom_data[i],file_data[i])) raise TpsError('EEPROM= %.2X, FILE= %.2X => ERROR' %(eeprom_data[i],file_data[i]))
def main (default_directory='.'): def main (default_directory='.'):
......
...@@ -391,7 +391,7 @@ def main (default_directory='.'): ...@@ -391,7 +391,7 @@ def main (default_directory='.'):
if (p.is_alive()) : if (p.is_alive()) :
p.terminate(); p.terminate();
raise TpsUser("Test SATA -> DP0: Error in DP0, RX") raise TpsError("Test SATA -> DP0: Error in DP0, RX")
time.sleep(2); time.sleep(2);
...@@ -410,7 +410,7 @@ def main (default_directory='.'): ...@@ -410,7 +410,7 @@ def main (default_directory='.'):
if (p.is_alive()) : if (p.is_alive()) :
p.terminate(); p.terminate();
raise TpsUser ("Test DP0 -> SATA 0: Error in SATA 0, RX") raise TpsError ("Test DP0 -> SATA 0: Error in SATA 0, RX")
time.sleep(2) time.sleep(2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment