summaryrefslogtreecommitdiff
path: root/evergreen/scons_lint.sh
diff options
context:
space:
mode:
authorRichard Samuels <richard.l.samuels@gmail.com>2022-05-20 13:19:24 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-20 13:50:13 +0000
commit09173712c719030f4c1ee499578e25d10fbc536f (patch)
tree9d39872fbe0c5625844642535e50d02c118f2704 /evergreen/scons_lint.sh
parent7117730842303f518a50e394b05b2b935bdd24b7 (diff)
downloadmongo-09173712c719030f4c1ee499578e25d10fbc536f.tar.gz
SERVER-65581 generate report files for linters
Diffstat (limited to 'evergreen/scons_lint.sh')
-rwxr-xr-xevergreen/scons_lint.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/evergreen/scons_lint.sh b/evergreen/scons_lint.sh
index 1cdf6ad9bf9..633ea98b11e 100755
--- a/evergreen/scons_lint.sh
+++ b/evergreen/scons_lint.sh
@@ -3,7 +3,7 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
cd src
-set -o errexit
+set -o pipefail
set -o verbose
activate_venv
@@ -18,4 +18,8 @@ export MYPY="$(
)"
echo "Found mypy executable at '$MYPY'"
export extra_flags=""
-eval ${compile_env} python3 ./buildscripts/scons.py ${compile_flags} $extra_flags --stack-size=1024 GITDIFFFLAGS="${revision}" REVISION="${revision}" ENTERPRISE_REV="${enterprise_rev}" ${targets}
+eval ${compile_env} python3 ./buildscripts/scons.py ${compile_flags} $extra_flags --stack-size=1024 GITDIFFFLAGS="${revision}" REVISION="${revision}" ENTERPRISE_REV="${enterprise_rev}" ${targets} | tee scons-lint.log
+exit_code=$?
+
+$python ./buildscripts/simple_report.py --test-name "${targets}" --log-file scons-lint.log --exit-code $exit_code
+exit $exit_code