Skip to content

Commit

Permalink
Skip the is_fs_supported failure test on CI
Browse files Browse the repository at this point in the history
All VFS backends are enabled in release tarballs so this test will fail
on GitHub Actions. Normally folks don't compile HDFS in locally so we'll
still keep the check for when folks are working locally.
  • Loading branch information
davisp committed Mar 19, 2024
1 parent 7fd8d07 commit fd7c40f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tiledb/api/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,13 @@ mod tests {
// enabled. These tests failing most likely means a non "standard"
// build of libtiledb.{so,dylib,dll}
assert!(ctx.is_supported_fs(ffi::Filesystem::MEMFS));
assert!(!ctx.is_supported_fs(ffi::Filesystem::HDFS));

// On GitHub Actions, we use the release tarball which enables all
// backends. Thus we skip this test when running in CI.
let var = std::env::var("GITHUB_ACTIONS").unwrap_or(String::from(""));
if var != *"true" {
assert!(!ctx.is_supported_fs(ffi::Filesystem::HDFS));
}
}

#[test]
Expand Down

0 comments on commit fd7c40f

Please sign in to comment.