summaryrefslogtreecommitdiff
path: root/dh_elpa_test
diff options
context:
space:
mode:
Diffstat (limited to 'dh_elpa_test')
-rwxr-xr-xdh_elpa_test9
1 files changed, 9 insertions, 0 deletions
diff --git a/dh_elpa_test b/dh_elpa_test
index 09fe39d..334f234 100755
--- a/dh_elpa_test
+++ b/dh_elpa_test
@@ -259,10 +259,19 @@ if ($autopkgtest) {
no warnings 'once';
open(OLDERR, ">&", \*STDERR);
}
+
# redirect stderr to stdout while we run our tests
+
# emacs --batch and ERT itself both produce a lot of output on
# stderr even when there has been no error, and adt-run interprets
# this as a test failure
+
+ # Recent autopkgtest has a 'allow-stderr' restriction prevents
+ # that interpretation. However, relying on that would require
+ # 'allow-stderr' to be specified in the d/tests/control file for
+ # every package using dh_elpa_test. It's cleaner just to redirect
+ # here.
+
open(STDERR, ">&STDOUT");
# unbuffer them to ensure lines appear in the right order
select STDERR; $| = 1;