Skip to content
Snippets Groups Projects
Commit f060d728 authored by mpm's avatar mpm
Browse files

Delete error logs one test at a time

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Delete error logs one test at a time

manifest hash: 746674a89f762a39cf1a679a258a92cd02440f95
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCuL3ZywK+sNU5EO8RAmYeAJ4uUd+zBdGx/H/CGKxXLjKX0vlDBwCfVRAA
zVnvyYT9CnmsctYE0NKXVVU=
=G53w
-----END PGP SIGNATURE-----
parent 7ed217cf
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@
function run_one
{
rm -f $1.err
export TZ=GMT
D=`mktemp -d`
if [ "$D" == "" ] ; then
......@@ -30,8 +31,8 @@
cd $D
fail=0
if ! $H/$f > .out 2>&1 ; then
echo $f failed with error code $?
if ! $H/$1 > .out 2>&1 ; then
echo $1 failed with error code $?
fail=1
fi
......@@ -35,6 +36,6 @@
fail=1
fi
if [ -s .out -a ! -r $H/$f.out ] ; then
echo $f generated unexpected output:
if [ -s .out -a ! -r $H/$1.out ] ; then
echo $1 generated unexpected output:
cat .out
......@@ -40,3 +41,3 @@
cat .out
cp .out $H/$f.err
cp .out $H/$1.err
fail=1
......@@ -42,8 +43,8 @@
fail=1
elif [ -r $H/$f.out ] && ! diff -u $H/$f.out .out > /dev/null ; then
echo $f output changed:
diff -u $H/$f.out .out && true
cp .out $H/$f.err
elif [ -r $H/$1.out ] && ! diff -u $H/$1.out .out > /dev/null ; then
echo $1 output changed:
diff -u $H/$1.out .out && true
cp .out $H/$1.err
fail=1
fi
......@@ -57,8 +58,6 @@
TESTS=`ls test-* | grep -Ev "\.|~"`
fi
rm -f test-*.err
for f in $TESTS ; do
echo -n "."
if ! run_one $f ; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment