Whamcloud - gitweb
LU-3764 tests: Make calls to error_ignore not trigger FAIL 82/7782/3
authorJames Nunez <james.a.nunez@intel.com>
Thu, 26 Sep 2013 21:21:42 +0000 (15:21 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 25 Oct 2013 02:24:05 +0000 (02:24 +0000)
commit9604442677fcac62ae0599b9e36340587835afe0
tree8dba285c158e95cc08c3f09fdc85ce69e3f5ffc2
parent8effee25f5537bc66e8f2418ef867b461b639b03
LU-3764 tests: Make calls to error_ignore not trigger FAIL

Currently, error_ignore calls error_noexit with a status of IGNORE
and a message/comment. error_noexit writes the comment to
the $LOGDIR/err file. If there is an err file, the pass
routine assumes the test failed and reports the test status as FAIL.
So, for errors that should be ignored, we don't want to be
writing the comment out to the err file.

Now, any message with an "IGNORE" status is written to
$LOGDIR/ignore file and, thus, the test will no longer be
classified as FAIL and the error will really be ignored.

Signed-off-by: James Nunez <james.a.nunez@intel.com>
Change-Id: I30f5387105f6cbce54050682b16387f73ab541d6
Reviewed-on: http://review.whamcloud.com/7782
Reviewed-by: Minh Diep <minh.diep@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/test-framework.sh