File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -4,19 +4,18 @@ set -eu
4
4
set -o pipefail
5
5
6
6
export RUST_BACKTRACE=full
7
- QLTEST_LOG=" $CODEQL_EXTRACTOR_RUST_LOG_DIR " /qltest.log
8
- mkdir -p " $CODEQL_EXTRACTOR_RUST_SCRATCH_DIR "
9
- TMP_OUT=" $( mktemp --tmpdir=" $CODEQL_EXTRACTOR_RUST_SCRATCH_DIR " qltest-XXXXXX.log) )"
10
- trap ' rm -f "$TMP_OUT"' EXIT
7
+ QLTEST_LOG=" $CODEQL_EXTRACTOR_RUST_LOG_DIR /qltest.log"
8
+ QLTEST_COLORED_LOG=" $CODEQL_EXTRACTOR_RUST_SCRATCH_DIR /qltest.log"
9
+ dirname " $QLTEST_LOG " " $QLTEST_COLORED_LOG " | xargs mkdir -p
11
10
# put full-color output on the side, but remove the color codes from the log file
12
11
# also, print (colored) output only in case of failure
13
12
if ! " $CODEQL_EXTRACTOR_RUST_ROOT /tools/$CODEQL_PLATFORM /extractor" \
14
13
--qltest \
15
14
--logging-verbosity=progress+ \
16
15
2>&1 \
17
- | tee " $TMP_OUT " \
16
+ | tee " $QLTEST_COLORED_LOG " \
18
17
| sed ' s/\x1B\[[0-9;]\{1,\}[A-Za-z]//g' \
19
18
> " $QLTEST_LOG " ; then
20
- cat " $TMP_OUT "
19
+ cat " $QLTEST_COLORED_LOG "
21
20
exit 1
22
21
fi
You can’t perform that action at this time.
0 commit comments