X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/78a24e5c55ac57efab90cf1e65b9af226b388a39..392e07d28a23aec9942b9ed0d122e35d2d268fb9:/tests/t0107-snapshot.sh diff --git a/tests/t0107-snapshot.sh b/tests/t0107-snapshot.sh index 8ab4912..8ad9573 100755 --- a/tests/t0107-snapshot.sh +++ b/tests/t0107-snapshot.sh @@ -10,10 +10,10 @@ run_test 'get foo/snapshot/master.tar.gz' ' run_test 'check html headers' ' head -n 1 trash/tmp | - grep -e "Content-Type: application/x-gzip" && + grep "Content-Type: application/x-gzip" && head -n 2 trash/tmp | - grep -e "Content-Disposition: inline; filename=.master.tar.gz." + grep "Content-Disposition: inline; filename=.master.tar.gz." ' run_test 'strip off the header lines' ' @@ -32,7 +32,7 @@ run_test 'count files' ' ' run_test 'verify untarred file-5' ' - grep -e "^5$" trash/master/file-5 && + grep "^5$" trash/master/file-5 && test $(cat trash/master/file-5 | wc -l) = 1 '