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:
Fabian Homborg
2019-06-27 21:59:51 +02:00
parent 262fe65121
commit 4c022a708f

View File

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