diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2021-06-10 12:35:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-10 12:35:38 -0400 |
commit | 9d706d71b55ca254d1bbd87754533a60142d2a6a (patch) | |
tree | 849a6b2d068515ee04a2e181362a1a7334ed4bdf /test_util/src | |
parent | 26a97a1f3bff2ad1a2f1013efdaeb9be953e6b52 (diff) |
chore: Fix broken test on Windows (#10900)
Diffstat (limited to 'test_util/src')
-rw-r--r-- | test_util/src/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index db0114b8c..68a407dda 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -76,7 +76,10 @@ lazy_static! { } pub fn root_path() -> PathBuf { - PathBuf::from(concat!(env!("CARGO_MANIFEST_DIR"), "/..")) + PathBuf::from(concat!(env!("CARGO_MANIFEST_DIR"))) + .parent() + .unwrap() + .to_path_buf() } pub fn prebuilt_path() -> PathBuf { |