Only run the output trunction test if with-tty says it's OK (as we
already do in main).
Thanks to Greg Troxel for reporting the issue.
Signed-off-by: Rob Browning <
r...@defaultvalue.org>
Tested-by: Rob Browning <
r...@defaultvalue.org>
---
Pushed to 0.33.x.
test/ext/test-ls | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/ext/test-ls b/test/ext/test-ls
index 174c5af6..fedb435b 100755
--- a/test/ext/test-ls
+++ b/test/ext/test-ls
@@ -295,8 +295,8 @@ WVPASSEQ "$(bup-ls -l src/latest/bad-symlink | tr -s ' ' ' ')" \
"$bad_symlink_mode $user/$group $bad_symlink_size $bad_symlink_date src/latest/bad-symlink -> not-there"
-if ! command -v script; then
- WVSKIP 'Skipping interactive ouput truncation test (no script command)'
+if ! with-tty true; then
+ WVSKIP 'Skipping interactive output truncation test (no script command)'
else
WVSTART "output isn't truncated when isatty"
WVPASS rm -rf src
--
2.47.3