summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/snapshots/success-no-arguments-multiple-input-paths-one-broken-link1
-rwxr-xr-xtests/stateless-journey.sh7
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/snapshots/success-no-arguments-multiple-input-paths-one-broken-link b/tests/snapshots/success-no-arguments-multiple-input-paths-one-broken-link
new file mode 100644
index 0000000..59f080a
--- /dev/null
+++ b/tests/snapshots/success-no-arguments-multiple-input-paths-one-broken-link
@@ -0,0 +1 @@
+Error: No such file or directory (os error 2) \ No newline at end of file
diff --git a/tests/stateless-journey.sh b/tests/stateless-journey.sh
index c5a11bd..bc6d0c9 100755
--- a/tests/stateless-journey.sh
+++ b/tests/stateless-journey.sh
@@ -65,6 +65,13 @@ WITH_FAILURE=1
expect_run ${SUCCESSFULLY} "$exe" aggregate --stats . . dir ./dir/ ./dir/sub
}
)
+ (with "a broken link in multiple roots"
+ ln -s not-present broken-link
+ it "fails but lists valid paths" && {
+ WITH_SNAPSHOT="$snapshot/success-no-arguments-multiple-input-paths-one-broken-link" \
+ expect_run ${WITH_FAILURE} "$exe" aggregate --stats . dir broken-link ./dir/sub
+ }
+ )
)
(when "specifying no subcommand"
it "produces a human-readable aggregate" && {