File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments