Fix test rerun logic
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.

[Editor's note: the issue was that .pyc file suppression was removed,
causing file logic that only had to deal with .py files in the past to
sometimes be dealing with .py files, sometimes .pyc files.]
git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@266192 91177308-0d34-0410-b5e6-96231b3b80d8

apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb