File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ def get_bad_tests(console_url):
6262    for  line  in  response .content .decode ("utf-8" ).splitlines ():
6363        result1  =  re .findall ("Running org.apache.hadoop.hbase.(.*)" , line )
6464        if  len (result1 ) ==  1 :
65-             test_case  =  result1 [0 ]
65+             # Sometimes the maven build output might have some malformed lines. See HBASE-27874 
66+             test_case  =  result1 [0 ].split ("WARNING" )[0 ].strip ()
6667            if  test_case  in  all_tests_set :
6768                print (("ERROR! Multiple tests with same name '{}'. Might get wrong results " 
6869                       "for this test." .format (test_case )))
@@ -71,7 +72,8 @@ def get_bad_tests(console_url):
7172                all_tests_set .add (test_case )
7273        result2  =  re .findall ("Tests run:.*?- in org.apache.hadoop.hbase.(.*)" , line )
7374        if  len (result2 ) ==  1 :
74-             test_case  =  result2 [0 ]
75+             # Sometimes the maven build output might have some malformed lines. See HBASE-27874 
76+             test_case  =  result2 [0 ].split ("WARNING" )[0 ].strip ()
7577            if  "FAILURE!"  in  line :
7678                failed_tests_set .add (test_case )
7779            if  test_case  not  in   hanging_tests_set :
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments