summaryrefslogtreecommitdiff
path: root/regress-driver
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-08-27 02:16:01 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-08-27 02:16:01 +0000
commit904d032d36e110578a976b42eeef9f364654a73f (patch)
treef0a29ce25f1d1716e8a0317a6474f11b7b3a9359 /regress-driver
parent83625d843988906507917687dcf8c57a9420feae (diff)
downloadgpsd-904d032d36e110578a976b42eeef9f364654a73f.tar.gz
GNU sed doesn't like having no command-line arguments.
Diffstat (limited to 'regress-driver')
-rwxr-xr-xregress-driver10
1 files changed, 5 insertions, 5 deletions
diff --git a/regress-driver b/regress-driver
index bda449d3..38b54a94 100755
--- a/regress-driver
+++ b/regress-driver
@@ -47,11 +47,11 @@ case $mode in
if [ -r $f.chk ]
then
$do gpsfake -s 38400 -1 -p $opts ${f} | ${GPSFILTER} ${ALTFILTER} >$dir/test.chk;
- $do sed <${f}.chk >$dir/log-copy.chk ${ALTFILTER}
- $do sed <$dir/test.chk >$dir/test-whole.chk ${ALTFILTER}
- $do sed <$dir/test.chk >$dir/test-trunc.chk -e '$d' ${ALTFILTER}
- diff -ub $dir/log-copy.chk $dir/test-whole.chk >$dir/diff
- diff -ub $dir/log-copy.chk $dir/test-trunc.chk >$dir/diff-trunc
+ $do sed <${f}.chk >$dir/log-copy.chk ${ALTFILTER} -e 'p';
+ $do sed <$dir/test.chk >$dir/test-whole.chk ${ALTFILTER} -e 'p';
+ $do sed <$dir/test.chk >$dir/test-trunc.chk -e '$d' ${ALTFILTER} -e 'p';
+ $do diff -ub $dir/log-copy.chk $dir/test-whole.chk >$dir/diff;
+ $do diff -ub $dir/log-copy.chk $dir/test-trunc.chk >$dir/diff-trunc;
if test \( -s $dir/diff \) -a \( -s $dir/diff-trunc \) ; then
errors=`expr $errors + 1`;
cat $dir/diff