summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/TclUtil.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-08 05:46:28 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-08 05:46:28 +0000
commitd89e08b3c07a3d312ae496375b99e2901b645fdf (patch)
tree053d2ae2d39734f30120e342ce994bf69a006a8b /llvm/utils/lit/TclUtil.py
parent12c77d73a90ca1a4c1448e3814560b0c3b55a850 (diff)
downloadbcm5719-llvm-d89e08b3c07a3d312ae496375b99e2901b645fdf.tar.gz
bcm5719-llvm-d89e08b3c07a3d312ae496375b99e2901b645fdf.zip
Fix typo that worked on python 2.6.
Also, fix unit tests. llvm-svn: 81194
Diffstat (limited to 'llvm/utils/lit/TclUtil.py')
-rw-r--r--llvm/utils/lit/TclUtil.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/utils/lit/TclUtil.py b/llvm/utils/lit/TclUtil.py
index da7659de857..4a3f34508d6 100644
--- a/llvm/utils/lit/TclUtil.py
+++ b/llvm/utils/lit/TclUtil.py
@@ -184,7 +184,7 @@ class TclExecCommand:
def parse_redirect(self, tok, length):
if len(tok) == length:
arg = self.lex()
- if next is None:
+ if arg is None:
raise ValueError,'Missing argument to %r redirection' % tok
else:
tok,arg = tok[:length],tok[length:]
@@ -310,11 +310,11 @@ class TestTclExecCommand(unittest.TestCase):
self.assertEqual(self.parse('echo hello > a >b >>c 2> d |& e'),
(False, False,
Pipeline([Command(['echo', 'hello'],
- [(('>',),'a'),
+ [(('>&',2),'1'),
+ (('>',),'a'),
(('>',),'b'),
(('>>',),'c'),
- (('>',2),'d'),
- (('>&',2),'1')]),
+ (('>',2),'d')]),
Command(['e'], [])],
False, True)))
OpenPOWER on IntegriCloud