Sfoglia il codice sorgente

improve build fail detection

Andrew Tridgell 4 anni fa
parent
commit
64e539a911
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      app.py

+ 2 - 0
app.py

@@ -238,6 +238,8 @@ def get_build_status():
             build = open(os.path.join(outdir_parent,b,'build.log')).read()
             if build.find("'%s' finished successfully" % vehicle.lower()) != -1:
                 status = "Finished"
+            elif build.find('The configuration failed') != -1 or build.find('Build failed') != -1:
+                status = "Failed"
             elif build.find('BUILD_FINISHED') == -1:
                 status = "Running"
             else: