@@ -44,7 +44,7 @@ def main(builtin_params = {}):
44
44
45
45
discovered_tests = lit .discovery .find_tests_for_inputs (litConfig , opts .test_paths )
46
46
if not discovered_tests :
47
- sys .stderr .write ('Did not disover any tests for provided path(s). \n ' )
47
+ sys .stderr .write ('error: did not disover any tests for provided path(s)\n ' )
48
48
sys .exit (2 )
49
49
50
50
# Command line overrides configuration for maxIndividualTestTime.
@@ -66,7 +66,7 @@ def main(builtin_params = {}):
66
66
filtered_tests = [t for t in discovered_tests if
67
67
opts .filter .search (t .getFullName ())]
68
68
if not filtered_tests :
69
- sys .stderr .write ('Filter did not match any tests '
69
+ sys .stderr .write ('error: filter did not match any tests '
70
70
'(of %d discovered). ' % len (discovered_tests ))
71
71
if opts .allow_empty_runs :
72
72
sys .stderr .write ('Suppressing error because '
@@ -85,8 +85,8 @@ def main(builtin_params = {}):
85
85
(run , shards ) = opts .shard
86
86
filtered_tests = filter_by_shard (filtered_tests , run , shards , litConfig )
87
87
if not filtered_tests :
88
- sys .stderr .write ('Shard does not contain any tests. Consider '
89
- 'decreasing the number of shards.\n ' )
88
+ sys .stderr .write ('warning: shard does not contain any tests. '
89
+ 'Consider decreasing the number of shards.\n ' )
90
90
sys .exit (0 )
91
91
92
92
if opts .max_tests :
@@ -109,11 +109,11 @@ def main(builtin_params = {}):
109
109
write_test_results_xunit (executed_tests , opts )
110
110
111
111
if litConfig .numErrors :
112
- sys .stderr .write ('\n %d error(s) in tests. \n ' % litConfig .numErrors )
112
+ sys .stderr .write ('\n %d error(s) in tests\n ' % litConfig .numErrors )
113
113
sys .exit (2 )
114
114
115
115
if litConfig .numWarnings :
116
- sys .stderr .write ('\n %d warning(s) in tests. \n ' % litConfig .numWarnings )
116
+ sys .stderr .write ('\n %d warning(s) in tests\n ' % litConfig .numWarnings )
117
117
118
118
has_failure = any (t .isFailure () for t in executed_tests )
119
119
if has_failure :
0 commit comments