mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-10-31 04:57:25 +01:00 
			
		
		
		
	test-runner: fix ctrl-c for UML
The TIOCSTTY ioctl was not shared between UML and QEMU which prevented any console input from making it into UML. This fixes that, and now ctrl-c can be used to stop UML test execution.
This commit is contained in:
		
							parent
							
								
									5710cc097b
								
							
						
					
					
						commit
						9edb196395
					
				| @ -277,6 +277,8 @@ class RunnerAbstract: | ||||
| 				else: | ||||
| 					os.remove(f) | ||||
| 
 | ||||
| 		fcntl.ioctl(STDIN_FILENO, TIOCSTTY, 1) | ||||
| 
 | ||||
| 	def cleanup_environment(self): | ||||
| 		rmtree('/tmp/iwd') | ||||
| 		rmtree('/tmp/certs') | ||||
| @ -479,8 +481,6 @@ class QemuRunner(RunnerAbstract): | ||||
| 
 | ||||
| 		super().prepare_environment() | ||||
| 
 | ||||
| 		fcntl.ioctl(STDIN_FILENO, TIOCSTTY, 1) | ||||
| 
 | ||||
| 	def stop(self): | ||||
| 		RB_AUTOBOOT = 0x01234567 | ||||
| 		# | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 James Prestwood
						James Prestwood