Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SA3
SA3LI Trial
Commits
19335a45
Commit
19335a45
authored
Jan 19, 2021
by
canterburym
Browse files
Fixing crash in linter when ASN.1 doesn't parse
parent
f792937e
Pipeline
#2567
passed with stage
in 1 minute and 15 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
testing/lint_asn1.py
testing/lint_asn1.py
+2
-2
No files found.
testing/lint_asn1.py
View file @
19335a45
...
...
@@ -39,7 +39,7 @@ def lintingTest (testName, testKind, testDescription):
def
formatFailure
(
f
):
return
f
"
{
f
[
'testName'
]
}
:
{
f
[
'message'
]
}
"
return
f
"
{
f
[
'testName'
]
if
f
.
get
(
'testName'
)
else
'Failure'
}
:
{
f
[
'message'
]
}
"
def
appendFailure
(
failures
,
context
,
newFailure
):
...
...
@@ -186,8 +186,8 @@ def lintASN1File (asnFile):
for
test
in
typeLevelTests
:
errors
+=
test
(
typeDef
,
context
)
except
ParseError
as
ex
:
appendFailure
(
errors
,
context
,
{
"message"
:
"ParseError: {0}"
.
format
(
ex
)})
logging
.
error
(
"ParseError: {0}"
.
format
(
ex
))
return
[
"ParseError: {0}"
.
format
(
ex
)]
return
errors
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment