|
|
@ -553,11 +553,13 @@ class CommandLineTestCase(unittest.TestCase):
|
|
|
|
with RunContext(self) as ctx:
|
|
|
|
with RunContext(self) as ctx:
|
|
|
|
cli.run((path, '--format', 'github'))
|
|
|
|
cli.run((path, '--format', 'github'))
|
|
|
|
expected_out = (
|
|
|
|
expected_out = (
|
|
|
|
'::error file=%s,line=2,col=4::[trailing-spaces] trailing'
|
|
|
|
'::group::%s\n'
|
|
|
|
|
|
|
|
'::error file=%s,line=2,col=4::2:4 [trailing-spaces] trailing'
|
|
|
|
' spaces\n'
|
|
|
|
' spaces\n'
|
|
|
|
'::error file=%s,line=3,col=4::[new-line-at-end-of-file] no'
|
|
|
|
'::error file=%s,line=3,col=4::3:4 [new-line-at-end-of-file] no'
|
|
|
|
' new line character at the end of file\n'
|
|
|
|
' new line character at the end of file\n'
|
|
|
|
% (path, path))
|
|
|
|
'::endgroup::\n\n'
|
|
|
|
|
|
|
|
% (path, path, path))
|
|
|
|
self.assertEqual(
|
|
|
|
self.assertEqual(
|
|
|
|
(ctx.returncode, ctx.stdout, ctx.stderr), (1, expected_out, ''))
|
|
|
|
(ctx.returncode, ctx.stdout, ctx.stderr), (1, expected_out, ''))
|
|
|
|
|
|
|
|
|
|
|
@ -571,11 +573,13 @@ class CommandLineTestCase(unittest.TestCase):
|
|
|
|
os.environ['GITHUB_WORKFLOW'] = 'something'
|
|
|
|
os.environ['GITHUB_WORKFLOW'] = 'something'
|
|
|
|
cli.run((path, ))
|
|
|
|
cli.run((path, ))
|
|
|
|
expected_out = (
|
|
|
|
expected_out = (
|
|
|
|
'::error file=%s,line=2,col=4::[trailing-spaces] trailing'
|
|
|
|
'::group::%s\n'
|
|
|
|
|
|
|
|
'::error file=%s,line=2,col=4::2:4 [trailing-spaces] trailing'
|
|
|
|
' spaces\n'
|
|
|
|
' spaces\n'
|
|
|
|
'::error file=%s,line=3,col=4::[new-line-at-end-of-file] no'
|
|
|
|
'::error file=%s,line=3,col=4::3:4 [new-line-at-end-of-file] no'
|
|
|
|
' new line character at the end of file\n'
|
|
|
|
' new line character at the end of file\n'
|
|
|
|
% (path, path))
|
|
|
|
'::endgroup::\n\n'
|
|
|
|
|
|
|
|
% (path, path, path))
|
|
|
|
self.assertEqual(
|
|
|
|
self.assertEqual(
|
|
|
|
(ctx.returncode, ctx.stdout, ctx.stderr), (1, expected_out, ''))
|
|
|
|
(ctx.returncode, ctx.stdout, ctx.stderr), (1, expected_out, ''))
|
|
|
|
|
|
|
|
|
|
|
|