Commit 4622c957 authored by Attila Krasznahorkay's avatar Attila Krasznahorkay
Browse files

Merge branch 'flake8_error' into 'master'

flake8_atlas: add option to return with error code

See merge request atlas/atlasexternals!955
parents c4576550 6b5cb8c6
Pipeline #3996640 passed with stage
in 79 minutes and 44 seconds
......@@ -27,6 +27,7 @@ Default: ${default_args}
\$FLAKE8_ATLAS_JOBS Environment variable to force number of parallel jobs.
(overwrites command line arguments -j/--jobs)
\$FLAKE8_ATLAS_VERBOSE Enable verbose output (e.g. print flake8 command)
\$FLAKE8_ATLAS_ERROR Return with flake8 error code (otherwise 0)
EOF
}
......@@ -129,8 +130,8 @@ else
fi
fi
# In unit test return with flake8 code, otherwise 0:
if [ -n "${ATLAS_CTEST_PACKAGE}" ]; then
# In unit test or if requested, return with flake8 code, otherwise 0:
if [[ -n "${ATLAS_CTEST_PACKAGE}" || -n "${FLAKE8_ATLAS_ERROR}" ]]; then
exit $rc
else
exit 0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment