llvm-project/lldb/packages/Python/lldbsuite/test
Pavel Labath 9fb77fcfef Fix test rerun logic
result_formatter used inspect.getfile() to get the python file name, which returned "*.pyc" if
the bytecode file was present. This resulted in files being displayed with the wrong extension,
and more critically, would confuse the rerun logic because it would try to rerun the pyc file
(which resulted in an empty rerun list as unittest refused to run those).

Fix: use inspect.getsourcefile() instead.

I am not sure why does was not an issue before. I can only assume that some system update
tricked python into producing bytecode files more aggressively.

llvm-svn: 266192
2016-04-13 12:05:48 +00:00
..
android/platform Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
api Change over the broadcaster/listener process to hold shared or weak pointers 2016-03-07 21:50:25 +00:00
arm_emulation Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
attic Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
benchmarks Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
driver/batch_mode Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
example Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
expression_command mark TestCallWithTimeout.py XFAIL on macosx. 2016-04-01 18:42:45 +00:00
functionalities Attempt to fix TestCPPBreakpointLocations on Linux/Android. 2016-04-13 04:21:05 +00:00
help Add --help and --long-help options to 'command alias' such that one can now specify a help string for an alias as they are defining it 2016-03-31 01:10:54 +00:00
issue_verification test infra: fix lldbinline tests to work with rerun 2015-12-22 17:14:47 +00:00
lang Skip a test in TestNamespaceLookup on linux to avoid a crash 2016-04-12 10:06:37 +00:00
linux Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
logging Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
macosx Make sure code that is in the middle of figuring out the correct architecture 2016-02-18 23:58:45 +00:00
make Remove CRLF line endings from test_common.h 2016-01-11 10:27:31 +00:00
plugins Adjust for Python-3. 2016-02-12 20:30:47 +00:00
python_api Mark TestPrintStackTraces as flaky on android arm 2016-04-11 16:50:08 +00:00
settings Remove the skipUnlessArch decorator. 2016-02-09 00:36:22 +00:00
source-manager Add reverse file remapping for breakpoint set 2016-03-04 11:26:44 +00:00
terminal Remove expected failure and skip decorators for host os. 2016-02-09 21:36:02 +00:00
test_runner wire timeouts and exceptional inferior process exits through the test event system 2015-12-09 06:45:43 +00:00
tools Bump up timeout in TestGdbRemoteProcessInfo 2016-04-12 11:59:41 +00:00
types Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
warnings/uuid Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
.categories Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
Makefile Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
README-TestSuite Centralize the handling of attach permissions on linux in tests 2016-01-11 10:24:50 +00:00
__init__.py Get rid of global variables in dotest.py 2015-12-08 01:15:30 +00:00
bench-history Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
bench.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
configuration.py test infra: enable single-worker rerun phase for flakey tests. 2015-12-14 21:28:46 +00:00
crashinfo.c Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
curses_results.py Rename test_results.py to result_formatter.py. 2015-12-07 21:23:41 +00:00
decorators.py Remove expectedFailureFreeBSD decorator 2016-02-19 19:25:03 +00:00
dosep.py Fix dotest.py '-p' option for multi-process mode 2016-04-05 17:34:38 +00:00
dotest.py Unicode support on Win32. 2016-03-22 17:58:09 +00:00
dotest_args.py test infra: enable single-worker rerun phase for flakey tests. 2015-12-14 21:28:46 +00:00
dotest_channels.py Propagate socket_error exception from handle_read. Otherwise Ninja crashes. 2015-12-15 23:51:27 +00:00
lldb_pylint_helper.py Updated lldb_pylint_helper to work with recent Python package changes. 2015-11-10 20:01:33 +00:00
lldbbench.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lldbcurses.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lldbinline.py Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
lldbpexpect.py Fixed the failing test TestCommandScriptImmediateOutput on MacOSX. Turns out that there are few things to watch out for when writing pexpect tests: 2016-03-30 00:02:13 +00:00
lldbplatform.py Add target and host platform enumerations so we're not using strings. 2016-02-18 18:50:02 +00:00
lldbplatformutil.py Add target and host platform enumerations so we're not using strings. 2016-02-18 18:50:02 +00:00
lldbtest.py Retry deletion of temporary files to avoid race conditions on Windows. 2016-04-11 15:21:01 +00:00
lldbtest_config.py Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
lldbutil.py fix missing import of 'time' in lldbutil.wait_for_file_on_target 2016-04-08 18:06:11 +00:00
lock.py Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
redo.py Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
result_formatter.py Fix test rerun logic 2016-04-13 12:05:48 +00:00
test_categories.py Don't run dwo tests for windows targets. 2016-01-11 18:49:30 +00:00
test_result.py Make test categories composable 2015-12-14 13:17:18 +00:00
xunit_formatter.py Guard xunit result test class and test method name access to prevent testbot breakage 2016-04-01 17:59:51 +00:00