Prevents files to be used as input of dagger.#FS
Errors out in the PreRun phase of the clientfilesystemreader task since otherwise, dagger execution would hang Fixes #1977 Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
This commit is contained in:
@@ -84,6 +84,15 @@ setup() {
|
||||
assert_output --partial 'path "/foobar" does not exist'
|
||||
}
|
||||
|
||||
|
||||
@test "plan/client/filesystem/read/fs/invalid" {
|
||||
cd "$TESTDIR/plan/client/filesystem/read/fs/invalid"
|
||||
|
||||
run "$DAGGER" "do" -p . test
|
||||
assert_failure
|
||||
assert_output --partial 'test.txt" is not a directory'
|
||||
}
|
||||
|
||||
@test "plan/client/filesystem/read/fs/relative" {
|
||||
cd "$TESTDIR/plan/client/filesystem/read/fs/relative"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user