Skip to content

Commit 7774ff9

Browse files
committed
fixup runner
Signed-off-by: Matej Hrica <[email protected]>
1 parent 8d38262 commit 7774ff9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/runner/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use clap::Parser;
33
use nix::sys::resource::{getrlimit, setrlimit, Resource};
44
use std::fs::{self, File};
55
use std::panic::catch_unwind;
6-
use std::path::PathBuf;
6+
use std::path::{Path, PathBuf};
77
use std::process::{Command, Stdio};
88
use std::env;
99
use tempdir::TempDir;
@@ -133,7 +133,7 @@ fn setup_namespace_and_run(test_setup: TestSetup) -> anyhow::Result<()> {
133133
}
134134
}
135135

136-
fn run_single_test(test_case: &str, base_dir: &PathBuf, keep_all: bool, max_name_len: usize) -> anyhow::Result<bool> {
136+
fn run_single_test(test_case: &str, base_dir: &Path, keep_all: bool, max_name_len: usize) -> anyhow::Result<bool> {
137137
let executable = env::current_exe().context("Failed to detect current executable")?;
138138
let test_dir = base_dir.join(test_case);
139139
fs::create_dir(&test_dir).context("Failed to create test directory")?;

0 commit comments

Comments
 (0)