Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: simple-mbed-cloud-client/mbed-cloud-client/mbed-client-pal/Test/TESTS/pal_make.py
- Revision:
- 0:8f0bb79ddd48
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/simple-mbed-cloud-client/mbed-cloud-client/mbed-client-pal/Test/TESTS/pal_make.py Tue May 04 08:55:12 2021 +0000 @@ -0,0 +1,19 @@ +import sys +import subprocess +import re + +pal_warn = re.compile("Warning.*pal") +pal_dont_treat_as_warn = re.compile("Warning.*PAL_INSECURE") + +proc = subprocess.Popen(sys.argv[1].split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + +for line in proc.stdout: + print line + if len(pal_warn.findall(line)) > 0: + if not len(pal_dont_treat_as_warn.findall(line)) > 0: + raise Exception("No Warnings Allowed in Pal") +proc.wait() +print "mbed compile returned {}".format(proc.returncode) +if not proc.returncode == 0: + raise Exception("mbed compile failed") +