mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
Turns out some version of macOS do not support the way `mktemp` was being used. In any case it wasn't really necessary, see https://github.com/github/codeql/pull/18918#discussion_r1979444850 (which I forgot to follow up on at the time after approval).
22 lines
669 B
Bash
Executable File
22 lines
669 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
export RUST_BACKTRACE=full
|
|
QLTEST_LOG="$CODEQL_EXTRACTOR_RUST_LOG_DIR/qltest.log"
|
|
QLTEST_COLORED_LOG="$CODEQL_EXTRACTOR_RUST_SCRATCH_DIR/qltest.log"
|
|
dirname "$QLTEST_LOG" "$QLTEST_COLORED_LOG" | xargs mkdir -p
|
|
# put full-color output on the side, but remove the color codes from the log file
|
|
# also, print (colored) output only in case of failure
|
|
if ! "$CODEQL_EXTRACTOR_RUST_ROOT/tools/$CODEQL_PLATFORM/extractor" \
|
|
--qltest \
|
|
--logging-verbosity=progress+ \
|
|
2>&1 \
|
|
| tee "$QLTEST_COLORED_LOG" \
|
|
| sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g' \
|
|
> "$QLTEST_LOG"; then
|
|
cat "$QLTEST_COLORED_LOG"
|
|
exit 1
|
|
fi
|