NetBSD/gnu/dist/tar/tests/after
2002-10-09 10:09:12 +00:00

15 lines
289 B
Bash

#! /bin/sh
# Do common operations after a particular test.
cd ..
exec 1> /dev/null
exec 2> /dev/null
echo "$out" | sed '$d' >tmp-$$/stdout0
cmp -s tmp-$$/stdout0 tmp-$$/stdout || exit 1
echo "$err" | sed '$d' >tmp-$$/stderr0
cmp -s tmp-$$/stderr0 tmp-$$/stderr || exit 1
rm -rf tmp-$$