From 4ad10d50acdad0adf7f28bafc829c2d36514c55c Mon Sep 17 00:00:00 2001
From: Menno Norden <norden@astron.nl>
Date: Sun, 28 Jun 2009 12:30:33 +0000
Subject: [PATCH] bug 1315: tbb_size test was wrong.

---
 StationTest/station_production.py | 42 +++++++++++++++----------------
 1 file changed, 21 insertions(+), 21 deletions(-)

diff --git a/StationTest/station_production.py b/StationTest/station_production.py
index d0ff2570662..24b38239eb7 100644
--- a/StationTest/station_production.py
+++ b/StationTest/station_production.py
@@ -104,7 +104,9 @@ sr.appendLog(21,'')
 sr.appendLog(21,'### Verify the size of the TBB memory modules')
 sr.appendLog(21,'')
 res = cli.command('./tbb_size.sh')
-if res.find('OK')==-1:
+if res.find('wrong')==-1:
+  sr.appendLog(11,'>>> TBB size test went OK')
+else:
   sr.appendLog(11,'>>> TBB size test went wrong')
   sr.appendLog(11,'CLI:')
   sr.appendLog(11,res,1,1,1)
@@ -113,26 +115,24 @@ if res.find('OK')==-1:
   sr.appendLog(11,'Expected:')
   sr.appendFile(11,'gold/tbb_size.gold')
   sr.setResult('FAILED')
-else:
-  sr.appendLog(11,'>>> TBB size test went OK')
-   
+  
 ################################################################################
 sr.setId('TBB memory check - ')
 sr.appendLog(21,'')
 sr.appendLog(21,'### Verify TBB memory modules on the TBB')
 sr.appendLog(21,'')
 res = cli.command('./tbb_memory.sh')
-if res.find('OK')==-1:
+if res.find('wrong')==-1:
+  sr.appendLog(11,'>>> TBB memory test went OK')
+else:
   sr.appendLog(11,'>>> TBB memory test went wrong')
   sr.appendLog(11,'CLI:')
   sr.appendLog(11,res,1,1,1)
   sr.appendLog(11,'Result:')
   sr.appendFile(11,'tbb_memory.log')
-  sr.appendLog(11,'Expected:')
-  sr.appendFile(11,'gold/tbb_memory.gold')
+  #sr.appendLog(11,'Expected:')
+  #sr.appendFile(11,'gold/tbb_memory.gold')
   sr.setResult('FAILED')
-else:
-  sr.appendLog(11,'>>> TBB memory test went OK')
    
 ################################################################################
 sr.setId('SPU status - ')
@@ -215,18 +215,18 @@ else:
   sr.appendLog('FAILED')  
 
 ################################################################################
-sr.setId('RCU-RSP-TBB - ')
-sr.appendLog(21,'')
-sr.appendLog(21,'### Verify the RCU - RSP - TBB LVDS interfaces by capturing pseudo random data on TBB')
-sr.appendLog(21,'')
-res = cli.command('./tbb_prbs_tester.sh')
-if res.find('wrong')==-1:
-  sr.appendLog(11,'>>> RCU - RSP - TBB LVDS interfaces test went OK')
-else:
-  sr.appendLog(11,'>>> RCU - RSP - TBB LVDS interfaces went wrong')
-  sr.appendLog(11,'CLI:')
-  sr.appendLog(11,res,1,1,1)
-  sr.setResult('FAILED')
+#sr.setId('RCU-RSP-TBB - ')
+#sr.appendLog(21,'')
+#sr.appendLog(21,'### Verify the RCU - RSP - TBB LVDS interfaces by capturing pseudo random data on TBB')
+#sr.appendLog(21,'')
+#res = cli.command('./tbb_prbs_tester.sh')
+#if res.find('wrong')==-1:
+#  sr.appendLog(11,'>>> RCU - RSP - TBB LVDS interfaces test went OK')
+#else:
+#  sr.appendLog(11,'>>> RCU - RSP - TBB LVDS interfaces went wrong')
+#  sr.appendLog(11,'CLI:')
+#  sr.appendLog(11,res,1,1,1)
+#  sr.setResult('FAILED')
 
 ################################################################################
 # End of the subrack test
-- 
GitLab