summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntti-Juhani Kaijanaho <ajk@debian.org>2011-11-13 19:43:33 +0200
committerAntti-Juhani Kaijanaho <ajk@debian.org>2011-11-13 19:43:33 +0200
commit788ae16ed216f79250da4e4edbf25739edf7f2f1 (patch)
tree345f9160ffb0058640c48618da2fd5912176cd47
parent842c7ead2eac01da3d5b6e778a90163e0e03284d (diff)
downloaddctrl-tools-788ae16ed216f79250da4e4edbf25739edf7f2f1.tar.gz
tester.sh: Do not output .differr if it wasn't constructed.
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
-rw-r--r--debian/changelog1
-rw-r--r--tester.sh8
2 files changed, 6 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog
index 003c28f..9ea3fdb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
dctrl-tools (2.20) UNRELEASED; urgency=low
* Improve the testsuite.
+ * tester.sh: Do not output .differr if it wasn't constructed.
-- Antti-Juhani Kaijanaho <ajk@debian.org> Sun, 13 Nov 2011 19:33:00 +0200
diff --git a/tester.sh b/tester.sh
index 55d0b6a..1c35d0b 100644
--- a/tester.sh
+++ b/tester.sh
@@ -1,6 +1,6 @@
#!/bin/sh
# dctrl-tools - Debian control file inspection tools
-# Copyright (C) 2007, 2010 Antti-Juhani Kaijanaho
+# Copyright (C) 2007, 2010, 2011 Antti-Juhani Kaijanaho
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -82,8 +82,10 @@ for tst in $tests ; do
echo "FAILED."
echo "stdout diff:"
cat .diffout
- echo "stderr diff:"
- cat .differr
+ if [ -r $tst_ero ] ; then
+ echo "stderr diff:"
+ cat .differr
+ fi
rv=1
fi
done