pytest: use a clean environment for all tests (#29788)
	
		
	
				
					
				
			* pytest: use a clean environment for all tests * rm that * fix pj * put build back * fix params * fix that * handle no key * that was removed --------- Co-authored-by: Justin Newberry <justin@comma.ai>pull/214/head
							parent
							
								
									4e69937d0d
								
							
						
					
					
						commit
						7b6afbc162
					
				
				 10 changed files with 54 additions and 56 deletions
			
			
		| @ -0,0 +1,10 @@ | |||||||
|  | import pytest | ||||||
|  | 
 | ||||||
|  | from openpilot.common.prefix import OpenpilotPrefix | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | @pytest.fixture(scope="function", autouse=True) | ||||||
|  | def global_setup_and_teardown(): | ||||||
|  |   # setup a clean environment for each test | ||||||
|  |   with OpenpilotPrefix(): | ||||||
|  |     yield | ||||||
| @ -1,18 +0,0 @@ | |||||||
| [pytest] |  | ||||||
| testpaths =  |  | ||||||
|     common |  | ||||||
|     selfdrive/athena |  | ||||||
|     selfdrive/boardd |  | ||||||
|     selfdrive/car |  | ||||||
|     selfdrive/controls |  | ||||||
|     selfdrive/locationd |  | ||||||
|     selfdrive/monitoring |  | ||||||
|     selfdrive/thermald |  | ||||||
|     selfdrive/test/longitudinal_maneuvers |  | ||||||
|     system/hardware/tici |  | ||||||
|     system/loggerd |  | ||||||
|     system/tests |  | ||||||
|     system/ubloxd |  | ||||||
|     tools/lib/tests |  | ||||||
| markers = |  | ||||||
|     parallel: mark tests as parallelizable (tests with no global state, so can be run in parallel) |  | ||||||
					Loading…
					
					
				
		Reference in new issue