summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2016-10-01 21:01:32 -0700
committerSean Whitton <spwhitton@spwhitton.name>2016-10-01 21:01:32 -0700
commit1fa6740020ead814e548c0034c68af8d5eb8ca1b (patch)
tree3e75f05aa8835b02c0b3bad0845b523129b9dd83
parentaa9e6cb969552ae8e6dabe83668de9546bdac3ed (diff)
add note about allow-stderr
-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;