Skip to content

[llvm-lit] lit internal shell does not support -e option for cat commands #102377

@connieyzhu

Description

@connieyzhu

lit’s internal shell currently does not support the -e option for cat, which gives an error when running the lldb test referenced below.

Error message:

FAIL: lldb-shell :: Driver/TestUseColor.test (1 of 2512)
******************** TEST 'lldb-shell :: Driver/TestUseColor.test' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 4
cat -e /usr/local/google/home/harinidonthula/llvm-project/build/tools/lldb/test/Shell/Driver/Output/TestUseColor.test.tmp | /usr/local/google/home/harinidonthula/llvm-project/build/bin/FileCheck /usr/local/google/home/harinidonthula/llvm-project/lldb/test/Shell/Driver/TestUseColor.test --check-prefix COLOR
# executed command: cat -e /usr/local/google/home/harinidonthula/llvm-project/build/tools/lldb/test/Shell/Driver/Output/TestUseColor.test.tmp
# .---command stderr------------
# | Unsupported: 'cat':  option -e not recognized
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /usr/local/google/home/harinidonthula/llvm-project/build/bin/FileCheck /usr/local/google/home/harinidonthula/llvm-project/lldb/test/Shell/Driver/TestUseColor.test --check-prefix COLOR
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /usr/local/google/home/harinidonthula/llvm-project/build/bin/FileCheck /usr/local/google/home/harinidonthula/llvm-project/lldb/test/Shell/Driver/TestUseColor.test --check-prefix COLOR
# `-----------------------------
# error: command failed with exit status: 2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions