mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +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:
|
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
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user