Skip to content

Commit 4d10c41

Browse files
author
Paolo Tranquilli
committed
Rust: address review
1 parent e0d0dc9 commit 4d10c41

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

rust/tools/qltest.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set "RUST_BACKTRACE=full"
44
set "QLTEST_LOG=%CODEQL_EXTRACTOR_RUST_LOG_DIR%/qltest.log"
55

6-
type NUL && "%CODEQL_EXTRACTOR_RUST_ROOT%/tools/%CODEQL_PLATFORM%/extractor" --qltest >"%QLTEST_LOG%" 2>&1
6+
type NUL && "%CODEQL_EXTRACTOR_RUST_ROOT%/tools/%CODEQL_PLATFORM%/extractor" --qltest --logging-verbosity=progress+ >"%QLTEST_LOG%" 2>&1
77

88
if %ERRORLEVEL% neq 0 (
99
type "%QLTEST_LOG%"

rust/tools/qltest.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ set -o pipefail
55

66
export RUST_BACKTRACE=full
77
QLTEST_LOG="$CODEQL_EXTRACTOR_RUST_LOG_DIR"/qltest.log
8-
TMP_OUT="$(mktemp)"
8+
mkdir -p "$CODEQL_EXTRACTOR_RUST_SCRATCH_DIR"
9+
TMP_OUT="$(mktemp --tmpdir="$CODEQL_EXTRACTOR_RUST_SCRATCH_DIR" qltest-XXXXXX.log))"
910
trap 'rm -f "$TMP_OUT"' EXIT
1011
# put full-color output on the side, but remove the color codes from the log file
1112
# also, print (colored) output only in case of failure

0 commit comments

Comments
 (0)