summaryrefslogtreecommitdiff
path: root/utils/lit/lit
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-01-25 06:30:36 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-01-25 06:30:36 +0000
commit52d4de971fe523fe43d6f868331a14ed1743f35a (patch)
treef0a683d97be2b87d2bd21f625ffd8cad19ec7c1b /utils/lit/lit
parentbfb8223e2b2a55c3ac6c73be0ac99bbce17cb097 (diff)
downloadllvm-52d4de971fe523fe43d6f868331a14ed1743f35a.tar.gz
llvm-52d4de971fe523fe43d6f868331a14ed1743f35a.tar.bz2
llvm-52d4de971fe523fe43d6f868331a14ed1743f35a.tar.xz
lit/ShUtil.py: Deprecate '!' in shell expression. It is not sh-compatible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173421 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit/lit')
-rw-r--r--utils/lit/lit/ShUtil.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/utils/lit/lit/ShUtil.py b/utils/lit/lit/ShUtil.py
index dda622a48a..5d65dc0d3d 100644
--- a/utils/lit/lit/ShUtil.py
+++ b/utils/lit/lit/ShUtil.py
@@ -129,7 +129,7 @@ class ShLexer:
lex_one_token - Lex a single 'sh' token. """
c = self.eat()
- if c in ';!':
+ if c == ';':
return (c,)
if c == '|':
if self.maybe_eat('|'):
@@ -219,9 +219,6 @@ class ShParser:
def parse_pipeline(self):
negate = False
- if self.look() == ('!',):
- self.lex()
- negate = True
commands = [self.parse_command()]
while self.look() == ('|',):
@@ -317,10 +314,6 @@ class TestShParse(unittest.TestCase):
Command(['c'], [])],
False))
- self.assertEqual(self.parse('! a'),
- Pipeline([Command(['a'], [])],
- True))
-
def test_list(self):
self.assertEqual(self.parse('a ; b'),
Seq(Pipeline([Command(['a'], [])], False),