# HG changeset patch # User cmlenz # Date 1124725404 0 # Node ID 7780b8815ab26777db33f2ae6ad4c92da8cb4dd4 # Parent d72d68471c10170ba0343d13eaf364a972126b99 Fix return code interpretation on Win32. Closes #38. diff --git a/bitten/util/cmdline.py b/bitten/util/cmdline.py --- a/bitten/util/cmdline.py +++ b/bitten/util/cmdline.py @@ -88,7 +88,7 @@ out_name = tempfile.mktemp() err_name = tempfile.mktemp() cmd = "( %s ) > %s 2> %s" % (' '.join(args), out_name, err_name) - self.returncode = os.system(cmd) >> 8 + self.returncode = os.system(cmd) log.debug('Exited with code %s', self.returncode) out_file = file(out_name, 'r')