mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: address review
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
set "RUST_BACKTRACE=full"
|
||||
set "QLTEST_LOG=%CODEQL_EXTRACTOR_RUST_LOG_DIR%/qltest.log"
|
||||
|
||||
type NUL && "%CODEQL_EXTRACTOR_RUST_ROOT%/tools/%CODEQL_PLATFORM%/extractor" --qltest >"%QLTEST_LOG%" 2>&1
|
||||
type NUL && "%CODEQL_EXTRACTOR_RUST_ROOT%/tools/%CODEQL_PLATFORM%/extractor" --qltest --logging-verbosity=progress+ >"%QLTEST_LOG%" 2>&1
|
||||
|
||||
if %ERRORLEVEL% neq 0 (
|
||||
type "%QLTEST_LOG%"
|
||||
|
||||
@@ -5,7 +5,8 @@ set -o pipefail
|
||||
|
||||
export RUST_BACKTRACE=full
|
||||
QLTEST_LOG="$CODEQL_EXTRACTOR_RUST_LOG_DIR"/qltest.log
|
||||
TMP_OUT="$(mktemp)"
|
||||
mkdir -p "$CODEQL_EXTRACTOR_RUST_SCRATCH_DIR"
|
||||
TMP_OUT="$(mktemp --tmpdir="$CODEQL_EXTRACTOR_RUST_SCRATCH_DIR" qltest-XXXXXX.log))"
|
||||
trap 'rm -f "$TMP_OUT"' EXIT
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user