summaryrefslogtreecommitdiffstats
path: root/etc/TestCmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'etc/TestCmd.py')
-rw-r--r--etc/TestCmd.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/TestCmd.py b/etc/TestCmd.py
index 8df039e..912be48 100644
--- a/etc/TestCmd.py
+++ b/etc/TestCmd.py
@@ -402,7 +402,7 @@ class TestCmd:
if self.verbose:
sys.stderr.write(cmd + "\n")
try:
- p = popen2.Popen3(cmd, 1)
+ p = popen2.Popen3(cmd, 1)
except AttributeError:
(tochild, fromchild, childerr) = os.popen3(cmd)
if stdin:
@@ -415,7 +415,9 @@ class TestCmd:
self._stdout.append(fromchild.read())
self._stderr.append(childerr.read())
fromchild.close()
- self._status = childerr.close()
+ self.status = childerr.close()
+ if not self.status:
+ self.status = 0
except:
raise
else: