From: batt Date: Wed, 17 Dec 2008 11:37:25 +0000 (+0000) Subject: Add return value check on commands. X-Git-Tag: 2.1.0~633 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=0408d2bf18351f8b3ac5f658e45f6c1702707795;p=bertos.git Add return value check on commands. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2049 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/test/parsetest.py b/test/parsetest.py index 959db343..326bd3ff 100755 --- a/test/parsetest.py +++ b/test/parsetest.py @@ -42,4 +42,6 @@ with open(sys.argv[1]) as f: idx = line.find(TOKEN) if idx != -1: cmd = line[idx + len(TOKEN):].strip() - os.system(cmd) + if os.system(cmd) != 0: + sys.exit(1) + sys.exit(0)