[all-commits] [llvm/llvm-project] e3a7c7: [lldb/Lit] Change the lldbtest format to behave mo...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Fri Jan 24 16:18:34 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e3a7c7713cd87e37a95a544373cd21f6f06ab94e
      https://github.com/llvm/llvm-project/commit/e3a7c7713cd87e37a95a544373cd21f6f06ab94e
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-01-24 (Fri, 24 Jan 2020)

  Changed paths:
    M lldb/test/API/lldbtest.py

  Log Message:
  -----------
  [lldb/Lit] Change the lldbtest format to behave more like shell test.

The current lldbtest format has a number of shortcomings, all related to
how we omit information based on why the test fails. For example, a
successful test would print nothing, even when `-a` is passed to lit.
It's not up to the test format to decide whether to print something or
not, that's handled by lit itself. For other test results we would
sometimes print stdout & stderr, but not always, such as when a timeout
was reached or we couldn't parse the dotest output.

This patch changes the lldbtest format and makes it behave more like
lit. We now always print the dotest invocation, the exit code, the
output to stdout & stderr. If you're used to dealing with ShTests in
lit, this will feel all very familiar.

Differential revision: https://reviews.llvm.org/D73384




More information about the All-commits mailing list