mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 19:32:45 +08:00
argparse test: Tighten regex against travis' shenanigans
Travis puts the commit message in an environment variable, so if it
contains the string `_flag` this would match TRAVIS_COMMIT_MESSAGE.
That happened in ca91c201c3
, so the
tests failed.
We simply tighten the regex a little more, and make a commit message
that doesn't include the string.
This commit is contained in:
parent
ca91c201c3
commit
f0f162f07e
|
@ -227,7 +227,7 @@ and echo unxpected argparse return status >&2
|
|||
# CHECKERR: argparse: Value 'a1' for flag 'm' is not an integer
|
||||
|
||||
# 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 | grep "^_flag_"; function x; return 57; end; x' -- argle --max=83 bargle 2>&1
|
||||
set -l saved_status $status
|
||||
test $saved_status -eq 57
|
||||
and echo expected argparse return status $saved_status
|
||||
|
|
Loading…
Reference in New Issue
Block a user