#[root]
Run test case when runner is root
#[cfg(test)] mod tests { // Only works with root account #[test_with::root()] #[test] fn test_ignored() { panic!("should be ignored") } }