Skip to content

Commit

Permalink
signoff Signed-off-by: Marcel Bindseil <[email protected]>
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Bindseil <[email protected]>
  • Loading branch information
bindsi committed Jan 22, 2025
1 parent 0eb45b7 commit 444c209
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions discovery-handlers/udev/src/discovery_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ mod tests {
- 'KERNEL=="video[0-9]*"'
permissions: xyz
"#;
let config: UdevDiscoveryDetails = deserialize_discovery_details(yaml).unwrap();
assert_eq!(&config.permissions, "xyz")
match deserialize_discovery_details::<UdevDiscoveryDetails>(yaml) {
Ok(_) => panic!("Expected error parsing invalid permissions"),
Err(e) => assert!(e.to_string().contains("a valid permission combination")),
}
}
}

0 comments on commit 444c209

Please sign in to comment.