mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-03 20:27:54 +00:00 
			
		
		
		
	regression_test: Better command line echoing
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
		@@ -555,23 +555,23 @@ function test() {
 | 
				
			|||||||
  then 
 | 
					  then 
 | 
				
			||||||
    TEXTCLASS="partial_failure"
 | 
					    TEXTCLASS="partial_failure"
 | 
				
			||||||
    TDTEXT="Partial Failure"
 | 
					    TDTEXT="Partial Failure"
 | 
				
			||||||
 | 
					    echo "Partial Failure"
 | 
				
			||||||
  elif [[ $TEXT =~ "FAILED" ]]
 | 
					  elif [[ $TEXT =~ "FAILED" ]]
 | 
				
			||||||
  then
 | 
					  then
 | 
				
			||||||
    TEXTCLASS="partial_failure"
 | 
					    TEXTCLASS="partial_failure"
 | 
				
			||||||
    TDTEXT="ERROR"
 | 
					    TDTEXT="ERROR"
 | 
				
			||||||
 | 
					    echo "ERROR"
 | 
				
			||||||
  else 
 | 
					  else 
 | 
				
			||||||
    TEXTCLASS="success"
 | 
					    TEXTCLASS="success"
 | 
				
			||||||
    TDTEXT="Success"
 | 
					    TDTEXT="Success"
 | 
				
			||||||
 | 
					    echo "No errors detected"
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (( FILESIZE > 0))
 | 
					  if (( FILESIZE > 0))
 | 
				
			||||||
  then
 | 
					  then
 | 
				
			||||||
    echo "Errors detected"
 | 
					 | 
				
			||||||
    TEXTCLASS="failure"
 | 
					    TEXTCLASS="failure"
 | 
				
			||||||
    TDTEXT="Failure"
 | 
					    TDTEXT="Failure"
 | 
				
			||||||
    STDERR="<a href=\"${URL2}/${NAME}_stderr.txt\" target=\"_blank\">STDERR</a>"
 | 
					    STDERR="<a href=\"${URL2}/${NAME}_stderr.txt\" target=\"_blank\">STDERR</a>"
 | 
				
			||||||
  else
 | 
					 | 
				
			||||||
    echo "No errors detected"
 | 
					 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
  results+=("<tr><td>${CURR_TEST_NAME}</td>
 | 
					  results+=("<tr><td>${CURR_TEST_NAME}</td>
 | 
				
			||||||
                       <td class='scriptdetails'>${testcommand}</td>
 | 
					                       <td class='scriptdetails'>${testcommand}</td>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user