llvm/utils/lit/tests/escape-color.py
raw| 1 | # cut off the first 9 lines to avoid absolute file paths in the output |
| 2 | # then keep only the next 10 lines to avoid test timing in the output |
| 3 | # RUN: %{lit} %{inputs}/escape-color/color.txt -a | tail -n +10 | head -n 10 > %t |
| 4 | # RUN: diff --strip-trailing-cr %{inputs}/escape-color/color-escaped.txt %t |