aboutsummaryrefslogtreecommitdiff
path: root/tests/t0107-snapshot.sh
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2013-03-04 21:58:50 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2013-03-05 00:39:07 +0000
commitf9b801a1746d6c4476b230659d2e1f3714986550 (patch)
tree45db8777646083bb9bb8fd023169e6f88bd02caa /tests/t0107-snapshot.sh
parent392e07d28a23aec9942b9ed0d122e35d2d268fb9 (diff)
downloadcgit-f9b801a1746d6c4476b230659d2e1f3714986550.tar
cgit-f9b801a1746d6c4476b230659d2e1f3714986550.tar.gz
cgit-f9b801a1746d6c4476b230659d2e1f3714986550.zip
tests: make whitespace consistent
Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'tests/t0107-snapshot.sh')
-rwxr-xr-xtests/t0107-snapshot.sh15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/t0107-snapshot.sh b/tests/t0107-snapshot.sh
index 8ad9573..d23bf97 100755
--- a/tests/t0107-snapshot.sh
+++ b/tests/t0107-snapshot.sh
@@ -10,17 +10,20 @@ run_test 'get foo/snapshot/master.tar.gz' '
run_test 'check html headers' '
head -n 1 trash/tmp |
- grep "Content-Type: application/x-gzip" &&
+ grep "Content-Type: application/x-gzip" &&
head -n 2 trash/tmp |
- grep "Content-Disposition: inline; filename=.master.tar.gz."
+ grep "Content-Disposition: inline; filename=.master.tar.gz."
'
run_test 'strip off the header lines' '
- tail -n +6 trash/tmp > trash/master.tar.gz
+ tail -n +6 trash/tmp > trash/master.tar.gz
+'
+
+run_test '
+ verify gzip format' 'gunzip --test trash/master.tar.gz
'
-run_test 'verify gzip format' 'gunzip --test trash/master.tar.gz'
run_test 'untar' '
rm -rf trash/master &&
tar -xf trash/master.tar.gz -C trash
@@ -32,8 +35,8 @@ run_test 'count files' '
'
run_test 'verify untarred file-5' '
- grep "^5$" trash/master/file-5 &&
- test $(cat trash/master/file-5 | wc -l) = 1
+ grep "^5$" trash/master/file-5 &&
+ test $(cat trash/master/file-5 | wc -l) = 1
'
tests_done