summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2022-05-12 07:59:58 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2022-05-12 07:59:58 +0800
commit05e61a65e318694cfb2b98f9566bff817090d741 (patch)
tree647828370947cc296d8f41c6f9020571c6a4efd9 /tests
parent1f852ed5afd118d1f4804baf0574189f4d1f0b42 (diff)
record status quo (#124)
Diffstat (limited to 'tests')
-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" && {