projects
/
bertos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
261ff85
)
Add return value check on commands.
author
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 17 Dec 2008 11:37:25 +0000
(11:37 +0000)
committer
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 17 Dec 2008 11:37:25 +0000
(11:37 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2049
38d2e660
-2303-0410-9eaa-
f027e97ec537
test/parsetest.py
patch
|
blob
|
history
diff --git
a/test/parsetest.py
b/test/parsetest.py
index 959db34303919534b63f096230b72a85531fd62f..326bd3ffc71a4912c6841ff2ba41a4c4d760c388 100755
(executable)
--- 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)