Simple interface for Mbed Cloud Client
Embed:
(wiki syntax)
Show/hide line numbers
pal_make.py
00001 import sys 00002 import subprocess 00003 import re 00004 00005 pal_warn = re.compile("Warning.*pal") 00006 pal_dont_treat_as_warn = re.compile("Warning.*PAL_INSECURE") 00007 00008 proc = subprocess.Popen(sys.argv[1].split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT) 00009 00010 for line in proc.stdout: 00011 print line 00012 if len(pal_warn.findall(line)) > 0: 00013 if not len(pal_dont_treat_as_warn.findall(line)) > 0: 00014 raise Exception("No Warnings Allowed in Pal") 00015 proc.wait() 00016 print "mbed compile returned {}".format(proc.returncode) 00017 if not proc.returncode == 0: 00018 raise Exception("mbed compile failed") 00019
Generated on Tue Jul 12 2022 19:01:36 by 1.7.2