app/test: return error code on failed tests
authorJohn McNamara <john.mcnamara@intel.com>
Thu, 11 Jun 2015 14:48:56 +0000 (15:48 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 15 Jun 2015 13:17:52 +0000 (15:17 +0200)
commita8a9262de31bb7cfbf89f5f72417de5d7ff4ec48
tree4bc2f388ac5cd577be7b1892b5f334fb8f0fb75b
parenta3894e2fbc30da56dcb76e03a41ede2869590b50
app/test: return error code on failed tests

This change returns a system error code if tests fail when
running any of the "make test" targets.

This allows the tests to report failures while running in
continuous integration environments.

Previously "make test" returned $? == 0 for all combinations
of success, failure and exception conditions.

Signed-off-by: John McNamara <john.mcnamara@intel.com>
app/test/autotest.py
app/test/autotest_runner.py