Improve test framework

error() returns 254 if it does not exit (ie, during teardown)
This commit is contained in:
Andrew Bettison 2012-06-04 18:25:50 +09:30
parent 05721d3725
commit 824763f5f0

View File

@ -854,6 +854,7 @@ _tfw_errorexit() {
teardown) [ $_tfw_status -lt 254 ] && _tfw_status=254;; teardown) [ $_tfw_status -lt 254 ] && _tfw_status=254;;
*) exit 254;; *) exit 254;;
esac esac
return 254
} }
# A "fatal" event stops the entire test run, and generally indicates an # A "fatal" event stops the entire test run, and generally indicates an