llvm-project/llvm/utils/lit/tests
Thomas Preud'homme d618c6e8ce [lit, test] Fix test cancellation feature detection
A lit feature guards tests for the lit timeout functionality because on
most system it depends on the availability of the psutil Python module.
However, that feature is defined based on the ability of the testing lit
to cancel test, which does not necessarily apply to the ability of the
tested lit.

In particular, RUN commands have a cleared PYTHONPATH and user site
packages are disabled. In the case where psutil is found by the testing
lit from one of those two source of python path, the tested lit would
not be able to find it, causing timeout tests to fail.

This commit fixes the issue by testing the ability to cancel tests in
the RUN command environment.

Reviewed By: yln

Differential Revision: https://reviews.llvm.org/D99728
2021-04-20 12:09:30 +01:00
..
Inputs [lit] Fix the return code for "not not" after evaluating "not" internally 2021-04-19 00:37:13 +03:00
unit [LIT] fixed up accidentally committed EOF problems. 2020-10-21 13:29:58 +01:00
.coveragerc
allow-retries.py
boolean-parsing.py
check-tested-lit-timeout-ability [lit, test] Fix test cancellation feature detection 2021-04-20 12:09:30 +01:00
custom-result-category.py [NFCI][lit] Unbreak more lit self-tests after D98179 2021-03-22 15:25:32 +03:00
discovery.py Add lit config for dir with standalone tests 2021-02-17 10:38:58 +00:00
googletest-discovery-failed.py
googletest-format.py [NFCI][lit] Unbreak more lit self-tests after D98179 2021-03-22 15:25:32 +03:00
googletest-timeout.py [lit] Try to remove the flakeyness of `shtest-timeout.py` and `googletest-timeout.py`. 2020-10-08 10:46:18 -07:00
googletest-upstream-format.py [NFCI][lit] Unbreak more lit self-tests after D98179 2021-03-22 15:25:32 +03:00
ignore-fail.py [lit] Sort test start times based on prior test timing data 2021-03-16 05:23:04 -04:00
lit-opts.py
lit.cfg [lit, test] Fix test cancellation feature detection 2021-04-20 12:09:30 +01:00
lit.site.cfg.in
max-failures.py
max-time.py
parallelism-groups.py
progress-bar.py [NFCI][lit] Unbreak more lit self-tests after D98179 2021-03-22 15:25:32 +03:00
reorder.py [lit] Do not forget test times for tests that weren't executed 2021-03-22 15:26:00 +03:00
selecting.py [lit] Add --xfail and --filter-out (inverse of --filter) 2021-02-20 05:43:29 -05:00
shell-parsing.py
show-result-codes.py [lit] Add --show-xxx command line options 2020-07-08 17:01:05 -07:00
show-used-features.py
shtest-encoding.py
shtest-env.py [NFCI][lit] Unbreak more lit self-tests after D98179 2021-03-22 15:25:32 +03:00
shtest-format-argv0.py [AIX] Add system-aix to lit config file 2020-07-06 12:54:12 -04:00
shtest-format.py [NFCI][lit] Unbreak more lit self-tests after D98179 2021-03-22 15:25:32 +03:00
shtest-inject.py
shtest-keyword-parse-errors.py [lit] Fix handling of various keyword parse errors 2020-06-12 09:37:40 -04:00
shtest-not.py [lit] Fix the return code for "not not" after evaluating "not" internally 2021-04-19 00:37:13 +03:00
shtest-output-printing.py
shtest-recursive-substitution.py [lit] Don't expand escapes until all substitutions have been applied 2020-07-27 18:09:00 +03:00
shtest-run-at-line.py [NFCI][lit] Unbreak more lit self-tests after D98179 2021-03-22 15:25:32 +03:00
shtest-shell.py [NFCI][lit] Unbreak more lit self-tests after D98179 2021-03-22 15:25:32 +03:00
shtest-timeout.py Fix shtest-timeout test harder 2020-12-08 00:23:33 -08:00
test-data-micro.py
test-data.py
test-output-micro.py
test-output.py
unittest-adaptor.py
unparsed-requirements.py [lit] Allow for tests to have non-parsed requirements 2020-06-15 16:43:02 -07:00
usage.py
xfail-cl.py [lit testing] Fix xfail-cl.py test worker count 2021-04-06 20:48:18 +01:00
xunit-output.py [lit] Don't include tests skipped due to sharding in reports 2020-07-26 11:39:22 +01:00