CI: take into account the build result to launch tests

2 jobs for fix-ci-tests-on-build-failure in 2 minutes and 5 seconds (queued for 1 second)
Status Job ID Name Coverage
  Precheck
passed #39260
fast-build

00:02:05

 
  External
passed cdash:ubuntu-18.04-fast