[all-commits] [llvm/llvm-project] 47dd1f: [lldb] Skip TestAppleSimulatorOSType if json parsi...

Augusto Noronha via All-commits all-commits at lists.llvm.org
Thu Sep 16 12:39:38 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 47dd1f642846d476e3d789f4aa941699dc0ed3fe
      https://github.com/llvm/llvm-project/commit/47dd1f642846d476e3d789f4aa941699dc0ed3fe
  Author: Augusto Noronha <augusto2112 at me.com>
  Date:   2021-09-16 (Thu, 16 Sep 2021)

  Changed paths:
    M lldb/test/API/tools/lldb-server/TestAppleSimulatorOSType.py

  Log Message:
  -----------
  [lldb] Skip TestAppleSimulatorOSType if json parsing fails

xcodebuild, which is invoked by the apple_simulator_test decorator, may
may return a successful status even if it was unable to run due to the
authorization agent denying it. This causes the TestAppleSimulatorOSType
to run when it shouldn't, and throw an excpection when parsing the JSON
that lists the simulators available. Wrap the json parsing in a
try/except block and if it fails, skip the ttest.

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




More information about the All-commits mailing list