[flang] Fix bug in tests for standalone build
authorTim Keith <tkeith@nvidia.com>
Mon, 4 May 2020 14:25:02 +0000 (07:25 -0700)
committerTim Keith <tkeith@nvidia.com>
Tue, 5 May 2020 18:08:23 +0000 (11:08 -0700)
commit0195b3a9098eba9349f4291606581669b2bef548
tree2b6d0f336f1ab04e50e3c69a5bf7d2d92f43fd91
parentfb18dffaeb584f48c914cd27afd959855984a901
[flang] Fix bug in tests for standalone build

When doing a standalone build of flang against an LLVM that contains a
built flang, the tests were run on the flang from LLVM rather than on
the one that was just built.

The problem was in the lit configuration for finding %flang etc.
Fix it to look only in the directory where it was built.

Differential Revision: https://reviews.llvm.org/D79327
flang/test/lit.cfg.py
flang/test/lit.site.cfg.py.in