You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by jx...@apache.org on 2017/08/26 03:21:54 UTC

[incubator-mxnet] branch master updated: Fix build status of a test (#7629)

This is an automated email from the ASF dual-hosted git repository.

jxie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new c42453d  Fix build status of a test (#7629)
c42453d is described below

commit c42453dfb4cd4baf6a0fe12ccc34cda62ea40df9
Author: Rahul Huilgol <ra...@gmail.com>
AuthorDate: Fri Aug 25 20:21:51 2017 -0700

    Fix build status of a test (#7629)
    
    installs bc required by sh2ju.sh and changes the regex match to capital alphabet as it clashes with a warning thrown by opencv driver
---
 tests/nightly/test_image_classification.sh | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/tests/nightly/test_image_classification.sh b/tests/nightly/test_image_classification.sh
index 93e403a..7ab443d 100755
--- a/tests/nightly/test_image_classification.sh
+++ b/tests/nightly/test_image_classification.sh
@@ -21,6 +21,8 @@
 # setup
 export LD_LIBRARY_PATH=`pwd`/`dirname $0`/lib:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
 export PYTHONPATH=`pwd`/`dirname $0`/python
+# bc is required by sh2ju.sh
+apt-get install bc
 cd `pwd`/`dirname $0`
 . sh2ju.sh
 
@@ -59,8 +61,8 @@ juLog -name=Build -error=Error build
 # check if the final evaluation accuracy exceed the threshold
 check_val() {
     expected=$1
-    pass="Final validation >= $expected, Pass"
-    fail="Final validation < $expected, Fail"
+    pass="Final validation >= $expected, PASS"
+    fail="Final validation < $expected, FAIL"
     python ../../tools/parse_log.py log --format none | tail -n1 | \
         awk "{ if (\$3~/^[.0-9]+$/ && \$3 > $expected) print \"$pass\"; else print \"$fail\"}"
     rm -f log
@@ -88,6 +90,6 @@ test_lenet() {
        check_val $desired_accuracy
     done
 }
-juLog -name=Python.Lenet.Mnist -error=Fail test_lenet
+juLog -name=Python.Lenet.Mnist -error=FAIL test_lenet
 
 exit $errors

-- 
To stop receiving notification emails like this one, please contact
['"commits@mxnet.apache.org" <co...@mxnet.apache.org>'].