mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-16 11:16:45 -04:00
testing: Add subprocess dbus session interface for test isolation
This commit is contained in:
parent
24223a4827
commit
6e925e91d9
4 changed files with 91 additions and 12 deletions
|
@ -200,7 +200,7 @@ mod test {
|
|||
|
||||
#[tokio::test]
|
||||
async fn ftrace_init() {
|
||||
let _h = testing::start();
|
||||
let mut h = testing::start();
|
||||
|
||||
let tracefs = Ftrace::base();
|
||||
|
||||
|
@ -212,7 +212,7 @@ mod test {
|
|||
Mode::S_IRUSR | Mode::S_IWUSR,
|
||||
)
|
||||
.expect("trace_pipe");
|
||||
let dbus = Connection::session().await.expect("dbus");
|
||||
let dbus = h.new_dbus().await.expect("dbus");
|
||||
let _ftrace = Ftrace::init(dbus).await.expect("ftrace");
|
||||
|
||||
assert_eq!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue