llvm-project/llvm/utils/lit/tests/shtest-export.py
Connie Zhu 1990d8de33
[llvm-lit][test] Resolved typo in raising InternalShellError for export command in lit's internal shell (#105961)
This patch fixes the incorrect usage of lit's built-in `export` command.
There is a typo in raising the error itself where the error being raised
had the wrong number of parameters passed in.

Fixes https://github.com/llvm/llvm-project/issues/102386.
2024-08-26 20:21:02 -07:00

13 lines
376 B
Python

## Test the export command.
# RUN: not %{lit} -a -v %{inputs}/shtest-export \
# RUN: | FileCheck -match-full-lines %s
#
# END.
# CHECK: FAIL: shtest-export :: export-too-many-args.txt {{.*}}
# CHECK: export FOO=1 BAR=2
# CHECK: # executed command: export FOO=1 BAR=2
# CHECK: # | 'export' supports only one argument
# CHECK: # error: command failed with exit status: {{.*}}