[caffe] 04/05: tests: redirect stderr output to stdout
Zhou Mo
cdluminate-guest at moszumanska.debian.org
Sat Dec 3 04:11:13 UTC 2016
This is an automated email from the git hooks/post-receive script.
cdluminate-guest pushed a commit to branch master
in repository caffe.
commit c8a33ff9b418e27a6c6034134be9fc83e62c4981
Author: Zhou Mo <cdluminate at gmail.com>
Date: Sat Dec 3 04:09:48 2016 +0000
tests: redirect stderr output to stdout
---
debian/changelog | 3 +++
debian/tests/simply.run | 2 +-
debian/tests/test.forward.backward.lenet | 2 +-
debian/tests/test.python3.import | 2 +-
debian/tests/test.python3.simple.forward | 2 +-
5 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index ba65636..c139f30 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,9 @@ caffe (1.0.0~rc3+20161127-g24d2f67-3) UNRELEASED; urgency=medium
* Refresh symbols control from buildd's log.
* Temporarily remove unused symbols file for kfreebsd-{amd64,i386}.
* Mark caffe-doc as "Multi-Arch: foreign".
+ * Redirect all autopkgtest scripts' stderr to stdout in order to
+ make CI happy. Test scripts are considered failed as long as they
+ produced output to stderr.
-- Zhou Mo <cdluminate at gmail.com> Sat, 03 Dec 2016 03:49:47 +0000
diff --git a/debian/tests/simply.run b/debian/tests/simply.run
index 96333c4..be92ce8 100755
--- a/debian/tests/simply.run
+++ b/debian/tests/simply.run
@@ -2,6 +2,6 @@
set -e
# simply run caffe to see if it explodes.
-caffe
+caffe -logtostderr false
exit 0
diff --git a/debian/tests/test.forward.backward.lenet b/debian/tests/test.forward.backward.lenet
index b5824f8..a53c77c 100755
--- a/debian/tests/test.forward.backward.lenet
+++ b/debian/tests/test.forward.backward.lenet
@@ -6,4 +6,4 @@ set -e
model=examples/mnist/lenet.prototxt
# launch a caffe benchmark on the above network
-caffe time -model $model -iterations 50
+caffe time -model $model -iterations 20 2>&1
diff --git a/debian/tests/test.python3.import b/debian/tests/test.python3.import
index fa5371b..a126bd3 100755
--- a/debian/tests/test.python3.import
+++ b/debian/tests/test.python3.import
@@ -2,6 +2,6 @@
set -e
# we want to know if it imports correctly
-python3 -c 'import caffe'
+python3 -c 'import caffe' 2>&1
exit 0
diff --git a/debian/tests/test.python3.simple.forward b/debian/tests/test.python3.simple.forward
index 2272cec..fa4ab40 100755
--- a/debian/tests/test.python3.simple.forward
+++ b/debian/tests/test.python3.simple.forward
@@ -1,6 +1,6 @@
#!/bin/sh
# perform a simple functional test
-python3 debian/tests/.python-caffe-test.py
+python3 debian/tests/.python-caffe-test.py 2>&1
exit 0
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/caffe.git
More information about the debian-science-commits
mailing list