3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +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:
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
#