apps/test: Fail when we can't start daemonsmaint-6.2v2.1.0.2
commit40da55d921b0e1f3581ded29c7c2d60f6c4a1b59
authorAnton Lofgren <alofgren@op5.com>
Wed, 12 Mar 2014 13:09:11 +0000 (12 14:09 +0100)
committerMattias Ryrlén <mattiasr@op5.com>
Mon, 17 Mar 2014 07:43:53 +0000 (17 08:43 +0100)
treeb574c895b094e731fd68cee1a6c8f5be501139bf
parentbf137e64550a9d3da7f3d0e7aec816a31702620c
apps/test: Fail when we can't start daemons

So... You'd think that a failing test would cause the entire suite to
fail. Not so. The pytap framework that we use for this suite is
fundamentally broken in that it doesn't check children for failures upon
completion. Instead, it somewhat unintuitively checks the current
instance's parents. This is not helpful, since that means you'd have
to keep track of all the information you'd expect a test framework to
keep track of by yourself.  In other words, you'd need to check each
test for failures and then failing them explicitly, since otherwise
you'll only get information about the root instance (which only checks
its own parents, of which there are none). At this point, you might
wonder why you're using a test framework at all, to which I have no
good response.

This is a band-aid. It does not solve the actual problem. And I'm pretty
sure there are more instances of the same symptom in the suite.

Either way, this will at least fail the suite if we can't even start
those bad daemons - which means we won't get builds that haven't had any
tests at all run on them, questionable as they may be.

Change-Id: If30e233d50d5aa233a0f3eb44146b6dd53696508
Signed-off-by: Anton Lofgren <alofgren@op5.com>
apps/libexec/test.py