Skip to content

Commit 9c726e9

Browse files
committed
fix test
1 parent 47fa94b commit 9c726e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cpplint_clitest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
import subprocess
3737
import unittest
3838

39-
BASE_CMD = sys.executable + ' ' + os.path.abspath('./cpplint.py')
39+
BASE_CMD = sys.executable + ' ' + os.path.abspath('./cpplint.py ')
4040

4141
def RunShellCommand(cmd, cwd='.'):
4242
"""
@@ -118,7 +118,7 @@ def checkDef(self, path):
118118
[line.decode('utf8').strip() for line in datalines[3 + stdoutLines:]])
119119

120120
def runAndCheck(self, cwd, args, expectedStatus, expectedOut, expectedErr):
121-
cmd = BASE_CMD + ' ' + args
121+
cmd = BASE_CMD + ' --repository ' + cwd + ' ' + args
122122
# command to reproduce, do not forget first two lines have special meaning
123123
print("\ncd " + cwd + ";" + cmd + " 2> <filename>")
124124
(status, out, err) = RunShellCommand(cmd, cwd)

0 commit comments

Comments
 (0)