[release/1.4.14] build: limit test concurrency
TravisCI and AppVeyor run the tests in very slow VMs.
Some of our tests can't cope with that. Running less tests
in parallel should make them somewhat less flakey.
(cherry picked from commit b0a6b979a3)
			
			
This commit is contained in:
		
				
					committed by
					
						
						Péter Szilágyi
					
				
			
			
				
	
			
			
			
						parent
						
							25205d64d7
						
					
				
				
					commit
					7c17a6704c
				
			@@ -227,6 +227,9 @@ func doTest(cmdline []string) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	// Run the actual tests.
 | 
						// Run the actual tests.
 | 
				
			||||||
	gotest := goTool("test")
 | 
						gotest := goTool("test")
 | 
				
			||||||
 | 
						// Test a single package at a time. CI builders are slow
 | 
				
			||||||
 | 
						// and some tests run into timeouts under load.
 | 
				
			||||||
 | 
						gotest.Args = append(gotest.Args, "-p", "1")
 | 
				
			||||||
	if *coverage {
 | 
						if *coverage {
 | 
				
			||||||
		gotest.Args = append(gotest.Args, "-covermode=atomic", "-cover")
 | 
							gotest.Args = append(gotest.Args, "-covermode=atomic", "-cover")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user