Skip to content

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

Closed
@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

Activity

llvmbot

llvmbot commented on Aug 7, 2024

@llvmbot
Member

@llvm/issue-subscribers-lldb

Author: Connie (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: '&lt;stdin&gt;' 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @EugeneZelenko@connieyzhu@llvmbot

      Issue actions

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