From 0408d2bf18351f8b3ac5f658e45f6c1702707795 Mon Sep 17 00:00:00 2001 From: batt Date: Wed, 17 Dec 2008 11:37:25 +0000 Subject: [PATCH] Add return value check on commands. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2049 38d2e660-2303-0410-9eaa-f027e97ec537 --- test/parsetest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.25.1