mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
tests/argparse: Use set -l
This skips history, which takes a lot of time here!
This commit is contained in:
parent
04f6306a35
commit
bfeebca75a
@ -285,7 +285,7 @@ and echo unxpected argparse return status >&2
|
|||||||
# CHECKERR: argparse: Value 'a1' for flag 'm' is not an integer
|
# CHECKERR: argparse: Value 'a1' for flag 'm' is not an integer
|
||||||
|
|
||||||
# Check the exit status from argparse validation
|
# Check the exit status from argparse validation
|
||||||
argparse 'm#max!set | grep "^_flag_"; function x; return 57; end; x' -- argle --max=83 bargle 2>&1
|
argparse 'm#max!set -l | grep "^_flag_"; function x; return 57; end; x' -- argle --max=83 bargle 2>&1
|
||||||
set -l saved_status $status
|
set -l saved_status $status
|
||||||
test $saved_status -eq 57
|
test $saved_status -eq 57
|
||||||
and echo expected argparse return status $saved_status
|
and echo expected argparse return status $saved_status
|
||||||
|
Loading…
x
Reference in New Issue
Block a user