Not seeing the contents of "err" made this too hard to diagnose when the test failed, so...
>From e284640cc665843d8bdb35cb452a28ceb62591e0 Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyer...@redhat.com> Date: Thu, 3 Nov 2011 16:59:07 +0100 Subject: [PATCH] tests: adjust a test to make its failure easier to diagnose * tests/t0203-gpt-tiny-device-abort.sh: When failing, also emit parted's diagnostics. --- tests/t0203-gpt-tiny-device-abort.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tests/t0203-gpt-tiny-device-abort.sh b/tests/t0203-gpt-tiny-device-abort.sh index 690f286..694bc9a 100644 --- a/tests/t0203-gpt-tiny-device-abort.sh +++ b/tests/t0203-gpt-tiny-device-abort.sh @@ -35,7 +35,7 @@ for i in 33 34 35 67 68 69 101 102 103; do # Print the partition table. Before, this would evoke a failed assertion. printf 'i\no\n' > in - parted ---pretend-input-tty bad u s p < in > out 2> err || fail=1 + parted ---pretend-input-tty bad u s p < in > out 2> err || { fail=1; cat err; } # don't bother comparing stdout done -- 1.7.8.rc0.32.g87bf9 _______________________________________________ bug-parted mailing list bug-parted@gnu.org https://lists.gnu.org/mailman/listinfo/bug-parted