[all-commits] [llvm/llvm-project] 9f641c: [libcxx][test] Use python specified by build rathe...

PiJoules via All-commits all-commits at lists.llvm.org
Thu Sep 30 15:35:42 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9f641c96cb15c9752c976bff286bb57adf86acab
      https://github.com/llvm/llvm-project/commit/9f641c96cb15c9752c976bff286bb57adf86acab
  Author: Leonard Chan <leonardchan at google.com>
  Date:   2021-09-30 (Thu, 30 Sep 2021)

  Changed paths:
    M libcxx/utils/libcxx/test/features.py

  Log Message:
  -----------
  [libcxx][test] Use python specified by build rather than system default python

As of e9564c3698edffc64439a8f957c7c28b19214613, libcxx/gdb/gdb_pretty_printer_test.sh.cpp
fails locally for me because the REQUIRES check for host-has-gdb-with-python
uses python, which for me expands to python 2.7.18. This failure does not seem
to be caught on any upstream builders, potentially because they don't have gdb,
python, or a version of python that makes the test UNSUPPORTED (like python3).

This updates the check to use the python specified by the build (which should
be the python that runs this code), rather than just python.

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




More information about the All-commits mailing list