test: Intercept per-test results correctly
test: Intercept per-test results correctly

Previously we would fail an entire test run when one test
failed. But recent changes have fixed this.

The side effect was that the tearDown() code wasn't tracking
the state of a given tests results correctly. Tests that would
succeed, would print out screenshots and download journals
if a prior test had failed.

Use a different mechanism for determining whether a test fails
in its tearDown() method.

Note that we cannot move the code out of tearDown() because it
needs to occur before the machine, browser, or other resources
have been torn down.

Closes #2983
Reviewed-by: Marius Vollmer <bb11c6e942c5cc765df5f04da146b3198127a7a3@redhat.com>

sgallagher/cockpit,SotolitoLabs/cockpit,mareklibra/cockpit,moraleslazaro/cockpit,petervo/cockpit,Scribery/cockpit,haiyangd/cockpit_view,andreasn/cockpit,matobet/cockpit,Scribery/cockpit,matobet/cockpit,cockpit-project/cockpit,haiyangd/cockpit_view,mvollmer/cockpit,stefwalter/cockpit,cockpituous/cockpit,harishanand95/cockpit,vanloswang/cockpit,andreasn/cockpit,petervo/cockpit,andreasn/cockpit,sgallagher/cockpit,xhad/cockpit,stefwalter/cockpit,haiyangd/cockpit_view,harishanand95/cockpit,martinpitt/cockpit,Scribery/cockpit,larskarlitski/cockpit,xhad/cockpit,stefwalter/cockpit,matobet/cockpit,larsu/cockpit,sgallagher/cockpit,andreasn/cockpit,larskarlitski/cockpit,mvollmer/cockpit,martinpitt/cockpit,larskarlitski/cockpit,harishanand95/cockpit,FireDrunk/cockpit,deryni/cockpit,arilivigni/cockpit,dperpeet/cockpit,larsu/cockpit,michalskrivanek/cockpit,SotolitoLabs/cockpit,sgallagher/cockpit,cockpituous/cockpit,cockpit-project/cockpit,mareklibra/cockpit,SotolitoLabs/cockpit,xhad/cockpit,martinpitt/cockpit,michalskrivanek/cockpit,vanloswang/cockpit,larsu/cockpit,mareklibra/cockpit,petervo/cockpit,mareklibra/cockpit,michalskrivanek/cockpit,dperpeet/cockpit,cockpituous/cockpit,garrett/cockpit,michalskrivanek/cockpit,harishanand95/cockpit,xhad/cockpit,jscotka/cockpit,deryni/cockpit,jscotka/cockpit,jscotka/cockpit,sgallagher/cockpit,mvollmer/cockpit,cockpituous/cockpit,moraleslazaro/cockpit,larsu/cockpit,deryni/cockpit,arilivigni/cockpit,jscotka/cockpit,vanloswang/cockpit,SotolitoLabs/cockpit,deryni/cockpit,michalskrivanek/cockpit,moraleslazaro/cockpit,haiyangd/cockpit_view,SotolitoLabs/cockpit,mareklibra/cockpit,larsu/cockpit,andreasn/cockpit,FireDrunk/cockpit,arilivigni/cockpit,FireDrunk/cockpit,dperpeet/cockpit,harishanand95/cockpit,petervo/cockpit,garrett/cockpit,michalskrivanek/cockpit,garrett/cockpit,SotolitoLabs/cockpit,matobet/cockpit,cockpit-project/cockpit,arilivigni/cockpit,petervo/cockpit,garrett/cockpit,martinpitt/cockpit,vanloswang/cockpit,larskarlitski/cockpit,stefwalter/cockpit,vanloswang/cockpit,Scribery/cockpit,michalskrivanek/cockpit,larsu/cockpit,larskarlitski/cockpit,vanloswang/cockpit,harishanand95/cockpit,vanloswang/cockpit,moraleslazaro/cockpit,petervo/cockpit,deryni/cockpit,dperpeet/cockpit,sgallagher/cockpit,stefwalter/cockpit,Scribery/cockpit,mareklibra/cockpit,moraleslazaro/cockpit,jscotka/cockpit,dperpeet/cockpit,arilivigni/cockpit,andreasn/cockpit,moraleslazaro/cockpit,deryni/cockpit,cockpituous/cockpit,mvollmer/cockpit,FireDrunk/cockpit,deryni/cockpit,matobet/cockpit,harishanand95/cockpit,cockpit-project/cockpit,FireDrunk/cockpit,stefwalter/cockpit,sgallagher/cockpit,petervo/cockpit,stefwalter/cockpit,SotolitoLabs/cockpit,Scribery/cockpit,matobet/cockpit,larskarlitski/cockpit,martinpitt/cockpit,cockpit-project/cockpit,arilivigni/cockpit,arilivigni/cockpit,garrett/cockpit,xhad/cockpit,mareklibra/cockpit,haiyangd/cockpit_view,dperpeet/cockpit,xhad/cockpit,mvollmer/cockpit,cockpituous/cockpit,moraleslazaro/cockpit,Scribery/cockpit,andreasn/cockpit,dperpeet/cockpit,larskarlitski/cockpit,jscotka/cockpit,xhad/cockpit