Fix test execution on FreeBSD versions other than 9.x
authorEd Maste <emaste@freebsd.org>
Thu, 25 Jul 2013 13:24:34 +0000 (13:24 +0000)
committerEd Maste <emaste@freebsd.org>
Thu, 25 Jul 2013 13:24:34 +0000 (13:24 +0000)
commit4d90f0f2c3d000e959e21976b2c1b507e9b386f7
treecc0189b83268653c71a69f6d3e68f474b5d96f91
parentca8a007995e403761cbd71b2d3273b563535e431
Fix test execution on FreeBSD versions other than 9.x

The tests use a plugin based on the name from sys.platform.
Unfortunately that string includes the major version number in
Python 2.7, so the tests would look for builder_freebsd9.py,
builder_freebsd10.py, etc.

The issue doesn't affect Linux as Python returns 'linux2' also
on Linux 3.x -- see http://bugs.python.org/issue12326 for details.

It seems later versions of Python will drop the major version
number, so adopt this convention now for FreeBSD.

llvm-svn: 187121
lldb/test/lldbtest.py
lldb/test/plugins/builder_freebsd.py [moved from lldb/test/plugins/builder_freebsd9.py with 100% similarity]