fixed make test reporting success when provision fails
authorAndrew Tridgell <tridge@samba.org>
Mon, 17 Aug 2009 12:45:51 +0000 (22:45 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 17 Aug 2009 12:46:47 +0000 (22:46 +1000)
commit1b09e36f0bc1942a5156715db21aed1ad403800e
tree2167f2f90527e359f06da88ed94cbb3a7ff63911
parent6cc9e4b9006e3f10ff88d20ecd0dd26c2fa63611
fixed make test reporting success when provision fails

We were getting build test 'pass' on the build farm when the provision
is failing. The cause was the use of filter pipelines in the selftest
code in the makefile. A bourne shell will by default report the error
status of the last element of the pipeline, which means when provision
failed, make thought everything had passed.

We could use the bash 'pipefail' option to fix this, but it isn't
portable, so instead I've modified the makefile to touch st/st_done
when the first element in the pipeline completes successfully. That
means we now get errors in make test, at the expense of making the
makefile even more horrible than it was.
source4/selftest/config.mk