passthrough.test: Use sed instead of tail.
authorTim Retout <diocles@gnu.org>
Thu, 4 Oct 2012 21:29:30 +0000 (22:29 +0100)
committerTim Retout <diocles@gnu.org>
Thu, 4 Oct 2012 21:29:30 +0000 (22:29 +0100)
ChangeLog
src/tests/passthrough.test

index e394839..027d2b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-10-04  Tim Retout  <diocles@gnu.org>
+
+       * src/tests/passthrough.test: Use sed instead of tail.
+
 2012-09-27  Jerome Roovers  <jer@gentoo.org>
 
        * src/tests/passthrough.test: Remove obsolete "+2" arguments to
index fe8a8fb..70bff41 100755 (executable)
@@ -14,9 +14,9 @@ EOF
 
 ### test_pass_through() {
 $enscript -G2r --quiet --pass-through -p- test_input.ps \
-  | tail -n +2 >$output
+  | sed '1d' >$output
 
-result=`tail -n +2 test_input.ps | cmp - $output`
+result=`sed '1d' test_input.ps | cmp - $output`
 
 if test "X$result" != "X"; then
   exit 1
@@ -34,9 +34,9 @@ EOF
 
 ### test_pass_through() {
 $enscript -G2r --quiet --pass-through -p- test_input.ps \
-  | tail -n +2 >$output
+  | sed '1d' >$output
 
-result=`tail -n +2 test_input.ps | cmp - $output`
+result=`sed '1d' test_input.ps | cmp - $output`
 
 if test "X$result" != "X"; then
   exit 1
@@ -52,9 +52,9 @@ EOF
 
 ### test_pass_through() {
 $enscript -G2r --quiet --pass-through -p- test_input.pcl \
-  | tail -n +2 >$output
+  | sed '1d' >$output
 
-result=`tail -n +2 test_input.pcl | cmp - $output`
+result=`sed '1d' test_input.pcl | cmp - $output`
 
 if test "X$result" != "X"; then
   exit 1
@@ -70,9 +70,9 @@ EOF
 
 ### test_pass_through() {
 $enscript -G2r --quiet --pass-through -p- test_input.pcl \
-  | tail -n +2 >$output
+  | sed '1d' >$output
 
-result=`tail -n +2 test_input.pcl | cmp - $output`
+result=`sed '1d' test_input.pcl | cmp - $output`
 
 if test "X$result" != "X"; then
   exit 1