Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TASTE
dmt
Commits
bbaca595
Commit
bbaca595
authored
Oct 02, 2018
by
Thanassis Tsiodras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CircleCI 2.0 saga: Let's make the test 'succeed', by addressing some flake8-reported minor issues.
parent
bf86672a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
.circleci/config.yml
.circleci/config.yml
+1
-1
dmt/A_mappers/ada_A_mapper.py
dmt/A_mappers/ada_A_mapper.py
+1
-1
dmt/A_mappers/python_A_mapper.py
dmt/A_mappers/python_A_mapper.py
+2
-2
dmt/aadl2glueC.py
dmt/aadl2glueC.py
+1
-1
No files found.
.circleci/config.yml
View file @
bbaca595
...
...
@@ -7,7 +7,7 @@ jobs:
-
restore_cache
:
key
:
docker-{{ checksum "Dockerfile" }}
-
run
:
command
:
if [[ -e ~/docker/image.tar ]]; then docker load --input ~/docker/image.tar; else docker build -t dmt . && { mkdir -p ~/docker; docker save
asn1scc
> ~/docker/image.tar ; } ; fi
command
:
if [[ -e ~/docker/image.tar ]]; then docker load --input ~/docker/image.tar; else docker build -t dmt . && { mkdir -p ~/docker; docker save
dmt
> ~/docker/image.tar ; } ; fi
-
save_cache
:
key
:
docker-{{ checksum "Dockerfile" }}
paths
:
...
...
dmt/A_mappers/ada_A_mapper.py
View file @
bbaca595
...
...
@@ -47,7 +47,7 @@ def OnStartup(unused_modelingLanguage: str, asnFiles: List[str], outputDir: str,
if
not
asn1SccPath
:
panic
(
"ASN1SCC seems to be missing from your system (asn1.exe not found in PATH).
\n
"
)
# pragma: no cover
# allow externally-defined flags when calling the asn1 compiler (e.g. to set word size based on target)
extraFlags
=
os
.
getenv
(
"ASN1SCC_FLAGS"
)
or
""
extraFlags
=
os
.
getenv
(
"ASN1SCC_FLAGS"
)
or
""
os
.
system
(
(
"mono "
if
sys
.
platform
.
startswith
(
'linux'
)
else
""
)
+
"
\"
{}
\"
-typePrefix asn1Scc -Ada {} -uPER -o
\"
"
.
format
(
asn1SccPath
,
extraFlags
)
+
...
...
dmt/A_mappers/python_A_mapper.py
View file @
bbaca595
...
...
@@ -476,13 +476,13 @@ def DumpTypeDumper(
for
idx
,
child
in
enumerate
(
node
.
_members
):
if
isinstance
(
node
,
AsnChoice
):
if
variableName
.
startswith
(
"path[i]"
):
lines
.
append
(
codeIndent
+
'path.Reset(state)'
)
lines
.
append
(
codeIndent
+
'path.Reset(state)'
)
# pragma: nocover
lines
.
append
(
codeIndent
+
'if %s.kind.Get() == DV.%s:'
%
(
variableName
,
CleanNameAsPythonWants
(
child
[
2
])))
if
variableName
.
startswith
(
"path[i]"
):
lines
.
append
(
codeIndent
+
' path.Reset(state)'
)
lines
.
append
(
codeIndent
+
' path.Reset(state)'
)
# pragma: nocover
sep
=
": "
elif
idx
>
0
:
# Separate fields with comas:
...
...
dmt/aadl2glueC.py
View file @
bbaca595
...
...
@@ -205,7 +205,7 @@ types). This used to cover Dumpable C/Ada Types and OG headers.'''
outputDir
=
commonPy
.
configMT
.
outputDir
asn1SccPath
=
spawn
.
find_executable
(
'asn1.exe'
)
# allow externally-defined flags when calling the asn1 compiler (e.g. to set word size based on target)
extraFlags
=
os
.
getenv
(
"ASN1SCC_FLAGS"
)
or
""
extraFlags
=
os
.
getenv
(
"ASN1SCC_FLAGS"
)
or
""
if
asnFile
is
not
None
:
if
not
asn1SccPath
:
panic
(
"ASN1SCC seems not installed on your system (asn1.exe not found in PATH).
\n
"
)
# pragma: no cover
...
...
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