Skip to content

Commit 04b3bf1

Browse files
committed
Revert "test with cargo test"
This reverts commit 09e2e64.
1 parent 2b5a995 commit 04b3bf1

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/extended.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,17 @@ jobs:
169169
rust-version: stable
170170
- name: Build sqllogictest binary
171171
run: |
172-
cargo build --profile release-nonlto --features backtrace,parquet_encryption --package datafusion-sqllogictest --test sqllogictests
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"
173180
- name: Run sqllogictest
181+
working-directory: datafusion/sqllogictest
174182
run: |
175-
cargo test --features backtrace,parquet_encryption --profile release-nonlto --test sqllogictests -- --include-sqlite
183+
# sqllogictests expects crate-relative paths for test data.
184+
"$TEST_BIN" --include-sqlite
176185
cargo clean

0 commit comments

Comments
 (0)