lit: Use sys.executable for executing builtin commands
commit04cbe721dae56eef0bd8ae26426395f53ecb72c2
authorTom Stellard <tstellar@redhat.com>
Fri, 31 Aug 2018 20:15:31 +0000 (31 20:15 +0000)
committerTom Stellard <tstellar@redhat.com>
Fri, 31 Aug 2018 20:15:31 +0000 (31 20:15 +0000)
tree4da169a14fb66da616b93e7d5a0b0f0fe530e7ec
parentf135ac4bbca73e3eacf621f4ae4ba1ed4eb73d1f
lit: Use sys.executable for executing builtin commands

Summary:
The python executable may not exist on all systems so use sys.executable
instead.

Reviewers: ddunbar, stella.stamenova

Subscribers: delcypher, llvm-commits

Differential Revision: https://reviews.llvm.org/D51511

llvm-svn: 341244
llvm/utils/lit/lit/TestRunner.py