3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59: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:
James Prestwood 2022-04-06 12:14:51 -07:00 committed by Denis Kenzior
parent 5710cc097b
commit 9edb196395

View File

@ -277,6 +277,8 @@ class RunnerAbstract:
else: else:
os.remove(f) os.remove(f)
fcntl.ioctl(STDIN_FILENO, TIOCSTTY, 1)
def cleanup_environment(self): def cleanup_environment(self):
rmtree('/tmp/iwd') rmtree('/tmp/iwd')
rmtree('/tmp/certs') rmtree('/tmp/certs')
@ -479,8 +481,6 @@ class QemuRunner(RunnerAbstract):
super().prepare_environment() super().prepare_environment()
fcntl.ioctl(STDIN_FILENO, TIOCSTTY, 1)
def stop(self): def stop(self):
RB_AUTOBOOT = 0x01234567 RB_AUTOBOOT = 0x01234567
# #