Skip to content

Commit dbd84b2

Browse files
committed
InlineExpectationsTest: Add quote around missing tag
To aid with quickly scanning where the missing tag is. I just had to do this myself looking over some test failures, and it all just blurred into each other in the logs. see https://github.com/github/codeql/actions/runs/3332266045/jobs/5512944867#step:5:467
1 parent 2ace10b commit dbd84b2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

python/ql/test/TestUtilities/InlineExpectationsTest.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ abstract class InlineExpectationsTest extends string {
156156
not actualResult.getTag() = this.getARelevantTag() and
157157
element = actualResult and
158158
message =
159-
"Tag mismatch: Actual result with tag " + actualResult.getTag() +
160-
" that is not part of getARelevantTag()"
159+
"Tag mismatch: Actual result with tag '" + actualResult.getTag() +
160+
"' that is not part of getARelevantTag()"
161161
)
162162
or
163163
exists(ValidExpectation expectation |
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
| test.py:1:1:1:3 | foo | Tag mismatch: Actual result with tag foo that is not part of getARelevantTag() |
2-
| test.py:4:1:4:3 | foo | Tag mismatch: Actual result with tag foo that is not part of getARelevantTag() |
1+
| test.py:1:1:1:3 | foo | Tag mismatch: Actual result with tag 'foo' that is not part of getARelevantTag() |
2+
| test.py:4:1:4:3 | foo | Tag mismatch: Actual result with tag 'foo' that is not part of getARelevantTag() |

0 commit comments

Comments
 (0)