mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-24 05:41:14 -03:00
tests: Simplify directory-redirect test
This doesn't need the indirection, since it was only an invocation test because we couldn't express it in the old runner.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#RUN: %fish -c 'begin; end > . ; status -b; and echo "status -b returned true after bad redirect on a begin block"; echo $status'
|
||||
#RUN: %fish %s
|
||||
begin; end > . ; status -b; and echo "status -b returned true after bad redirect on a begin block"
|
||||
# Note that we sometimes get fancy quotation marks here, so let's match three characters
|
||||
#CHECKERR: <W> fish: An error occurred while redirecting file {{...}}
|
||||
#CHECKERR: {{open: Is a directory|open: Invalid argument}}
|
||||
echo $status
|
||||
#CHECK: 1
|
||||
|
||||
Reference in New Issue
Block a user