From: Ralph Corderoy Date: Sat, 19 Aug 2017 14:58:49 +0000 (+0100) Subject: test-sendfiles: Feed `lzma -cd' stdin rather than a filename. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/937ee92013bed7b3ebd30fff2c17a751d37b1a61?hp=c8815b7b63b710e1480d4be759744583e59308e9 test-sendfiles: Feed `lzma -cd' stdin rather than a filename. HÃ¥kon Alstadheim reported that Debian's lzma-9.22-2 would complain at `lzma -cd foo.tar' with `unknown suffix -- unchanged' even though it was not being asked to alter the file, or produce a new one based on its filename. This appears to be https://bugs.debian.org/700681. The lzma from Arch Linux's xz 5.2.3-1 does no have this fault. Work around it by feeding the file to decompress on standard input for all the compression programs being tested; none of the others should mind. --- diff --git a/test/post/test-sendfiles b/test/post/test-sendfiles index 84f54bfe..3e55b1ec 100755 --- a/test/post/test-sendfiles +++ b/test/post/test-sendfiles @@ -65,7 +65,7 @@ test_sendfiles () (cd $MH_TEST_DIR/tmp && contents=`mhstore -noauto last 2>&1 | \ sed -e 's/storing message.*as file //'` && - $uncompress "$contents" | tar xpf - && rm -f "$contents") + $uncompress <"$contents" | tar xpf - && rm -f "$contents") rmm last check "$testfiledir/$testfile" "$MH_TEST_DIR/tmp/$testfile" \