Commit 12e93a4
authored
test: One liner to skip read_table_version_hdfs (delta-io#1428)
## What changes are proposed in this pull request?
This PR adds an \`#[ignore]\` attribute to the
\`read_table_version_hdfs\` test to skip it when the Maven executable is
not available on the system.
**Problem:**
The HDFS integration test was failing in environments where Maven is not
installed:
```
cargo test --all-features
```
```
thread 'read_table_version_hdfs' panicked at
/Users/sanuj.basu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/
hdfs-native-0.12.3/src/minidfs.rs:59:37:
Failed to find mvn executable: CannotFindBinaryPath
```
**Solution:**
Added the \`#[ignore = \"Skipping HDFS integration test\"]\` attribute
to the \`read_table_version_hdfs\` test function. This allows the test
to be skipped by default while still being available to run explicitly
when needed.
## How was this change tested?
Verified that the test is properly skipped:
```
running 1 test
test read_table_version_hdfs ... ignored, Skipping HDFS integration test
test result: ok. 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out
```
The test can still be run explicitly with:
```bash
cargo test --features integration-test --test hdfs -- --include-ignored
```1 parent 70143ca commit 12e93a4
2 files changed
Lines changed: 2 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
| 156 | + | |
165 | 157 | | |
166 | 158 | | |
167 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
0 commit comments