389558776e 
								
							
								 
							
						 
						
							
							
								
								params: remove all files if call clearAll with the ParamKeyType.ALL key. ( #26000 )  
							
							... 
							
							
 
							
							* remove all files in dir
* fix test case name
old-commit-hash: 8dbb25e683 
							
						 
						
							3 years ago  
				
					
						
							
							
								 
						
							
							
								35ff65121e 
								
							
								 
							
						 
						
							
							
								
								pre-commit: add codespell ( #25571 )  
							
							... 
							
							
 
							
							old-commit-hash: 6590fb2b93 
							
						 
						
							3 years ago  
				
					
						
							
							
								 
						
							
							
								f4675fc260 
								
							
								 
							
						 
						
							
							
								
								Merge common/ and selfdrive/common ( #24556 )  
							
							... 
							
							
 
							
							* Merge common/ and selfdrive/common
* fix that
* fix version
* fix unit tests
old-commit-hash: cb8885cffb 
							
						 
						
							3 years ago  
				
					
						
							
							
								 
						
							
							
								ebffd5f3ad 
								
							
								 
							
						 
						
							
							
								
								util: add safe write functions ( #22160 )  
							
							... 
							
							
 
							
							* add safe write functions
* log error
* bzfile safe_fopen&safe_flush
* update test_case
* trigger ci
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 652c42da2c 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								0afe7d74bc 
								
							
								 
							
						 
						
							
							
								
								util: add new function create_directories with unit tests ( #21871 )  
							
							... 
							
							
 
							
							* util::create_directories
* check bool ret
* don't assume mask
* rename with_umask to no_umask
* remove umask
* rebase master
* rebase master
* 0755
old-commit-hash: 1f39d8cee6 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								48b7754ab5 
								
							
								 
							
						 
						
							
							
								
								fix: util::read_files_in_dir does not always return a correct result ( #21883 )  
							
							... 
							
							
 
							
							* fix bug
* use de->d_type==DT_REG
* Revert "use de->d_type==DT_REG"
This reverts commit ecb38c823083710b14ee 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								16c727b65c 
								
							
								 
							
						 
						
							
							
								
								fix: util::file_exists will return false on no permissions ( #21880 )  
							
							... 
							
							
 
							
							* fix bug
* add test case
old-commit-hash: 3a7959b5ff 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								28a9781c51 
								
							
								 
							
						 
						
							
							
								
								util::read_file: fix reading from sysfs and add test case ( #21325 )  
							
							... 
							
							
 
							
							* add sysfs test case
* Revert "util.cc: refactor read_file (#21321 )"
This reverts commit 2a9ba3e867e4ba8ea8818a5be24807301a945f17.
old-commit-hash: d90d9b2280 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								8742d78051 
								
							
								 
							
						 
						
							
							
								
								fix /proc test case for util::read_file  
							
							... 
							
							
 
							
							old-commit-hash: ea6f779b3e 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								6bfc7f4ca5 
								
							
								 
							
						 
						
							
							
								
								common/util.cc: add unit test, fix bug in util::read_file ( #21251 )  
							
							... 
							
							
 
							
							* add test case for util
* fix bug in read_file
* gitignore test_util
* better test
* referer
* more
* more test
* REQUIRE size
* apply reviews
* only test binary
* simplify the test
* read  non-permission
* debug print
* remove /etc/shadow
* test read directory
* Update selfdrive/common/tests/test_util.cc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: a873a23e0d 
							
						 
						
							4 years ago