mirror of
https://github.com/joleuger/vuinputd.git
synced 2026-07-17 16:36:03 +00:00
Fix integration test for vuinput.
This commit is contained in:
parent
e4335df8e6
commit
0e6abf1d85
2 changed files with 13 additions and 1 deletions
|
|
@ -95,7 +95,6 @@ fn test_keyboard_in_container_with_uinput() {
|
|||
}
|
||||
|
||||
#[cfg(all(feature = "requires-root", feature = "requires-uinput", feature = "requires-bwrap"))]
|
||||
#[ignore]
|
||||
#[test]
|
||||
fn test_keyboard_in_container_with_vuinput() {
|
||||
println!("Note that vuinputd needs to run for this test");
|
||||
|
|
@ -105,6 +104,10 @@ fn test_keyboard_in_container_with_vuinput() {
|
|||
.unshare_net()
|
||||
.ro_bind("/", "/")
|
||||
.tmpfs("/tmp")
|
||||
// dev needs to be writable for the new devices
|
||||
.tmpfs("/dev")
|
||||
// run needs to be writable for the udev devices
|
||||
.tmpfs("/run")
|
||||
.dev_bind("/dev/vuinput", "/dev/uinput")
|
||||
.die_with_parent()
|
||||
.command(keyboard_in_container,&[])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue