Skip to content

Commit 3d18605

Browse files
AnvarUJenkins
authored andcommitted
mk-oracle: fix fixture path in the remote-host component tests
Change-Id: I4fe7df118154959fe75142c59947640362b714f2
1 parent 5de8893 commit 3d18605

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

packages/mk-oracle/tests/test_ora_no_db.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,10 +1368,11 @@ oracle:
13681368
/// Resolve `tests/files` for both Bazel (cwd is the runfiles root) and cargo (cwd is the crate).
13691369
#[cfg(not(windows))]
13701370
fn files_dir() -> std::path::PathBuf {
1371-
if cfg!(feature = "build_system_bazel") {
1372-
std::env::current_dir()
1373-
.unwrap()
1374-
.join("packages/mk-oracle/tests/files")
1371+
let runfiles = std::env::current_dir()
1372+
.unwrap()
1373+
.join("packages/mk-oracle/tests/files");
1374+
if runfiles.is_dir() {
1375+
runfiles
13751376
} else {
13761377
std::path::PathBuf::from("tests/files")
13771378
}

0 commit comments

Comments
 (0)