Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SA3
SA3LI Trial
Commits
30312d95
Commit
30312d95
authored
Mar 06, 2020
by
canterburym
Browse files
Update test fixture
parent
3d2bcdbc
Changes
1
Show whitespace changes
Inline
Side-by-side
testing/check_asn1.py
View file @
30312d95
...
@@ -7,8 +7,10 @@ from pathlib import Path
...
@@ -7,8 +7,10 @@ from pathlib import Path
schemaFileGlob
=
glob
(
"*.asn1"
)
schemaFileGlob
=
glob
(
"*.asn1"
)
for
schemaFile
in
schemaFileGlob
:
for
schemaFile
in
schemaFileGlob
:
try
:
try
:
print
(
"Checking file: {0}"
.
format
(
schemaFile
),
end
=
""
)
parse_files
(
schemaFile
)
parse_files
(
schemaFile
)
print
(
"OK"
)
except
ParseError
as
ex
:
except
ParseError
as
ex
:
sys
.
exit
(
"ASN1 parser error: "
+
str
(
ex
))
sys
.
exit
(
"ASN1 parser error: "
+
str
(
ex
))
print
(
"ASN1 schema
OK"
)
print
(
"
{0}
ASN
.
1 schema
s checked"
.
format
(
len
(
schemaFileGlob
))
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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