Skip to content

Commit 2b5a995

Browse files
committed
test with cargo test
1 parent 882251a commit 2b5a995

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.github/workflows/extended.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -169,17 +169,8 @@ jobs:
169169
rust-version: stable
170170
- name: Build sqllogictest binary
171171
run: |
172-
# Cargo emits test binaries with hashed filenames under target/.../deps.
173-
# We use head to pick the first matching sqllogictests artifact from the JSON stream.
174-
TEST_BIN=$(cargo build --profile release-nonlto --features backtrace,parquet_encryption --package datafusion-sqllogictest --test sqllogictests --message-format=json | sed -n 's/.*"executable":"\([^"]*\)".*/\1/p' | head -n 1)
175-
if [ -z "$TEST_BIN" ]; then
176-
echo "Could not find sqllogictests test binary"
177-
exit 1
178-
fi
179-
echo "TEST_BIN=$TEST_BIN" >> "$GITHUB_ENV"
172+
cargo build --profile release-nonlto --features backtrace,parquet_encryption --package datafusion-sqllogictest --test sqllogictests
180173
- name: Run sqllogictest
181-
working-directory: datafusion/sqllogictest
182174
run: |
183-
# sqllogictests expects crate-relative paths for test data.
184-
"$TEST_BIN" --include-sqlite
175+
cargo test --features backtrace,parquet_encryption --profile release-nonlto --test sqllogictests -- --include-sqlite
185176
cargo clean

0 commit comments

Comments
 (0)