Diff of /codesys-ide/scripts/build-test.py [61e89f] .. [7e04ef]  Maximize  Restore

Switch to side-by-side view

--- a/codesys-ide/scripts/buildtest.py
+++ b/codesys-ide/scripts/build-test.py
@@ -43,7 +43,7 @@
     #    proj.save()
     print("create bootapp '%s'" % destination)
     try:
-        proj.active_application.create_boot_application(destination)
+        proj.active_application.create_boot_application(os.path.basename(destination))
     except:
         print("Error: Creation of bootapplication failed")
         # Get message objects which contain all the data
@@ -53,11 +53,14 @@
             Severity.Text : "Text"
         }
         msgs = system.get_message_objects(CompileCategory, Severity.FatalError|Severity.Error)
+        xError = False
         for msg in msgs:
             sev = severities[msg.severity]
-            print("{} {}{}: {}".format(sev, msg.prefix, msg.number, msg.text))
-        return None
-    print("done." % destination)
+            if msg.severity == Severity.FatalError:
+                xError = True
+            print("%s %s%s: %s" % (sev, msg.prefix, msg.number, msg.text))
+        if not xError:
+            return None
     proj.close()
     return destination