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
C
CTU CAN FD IP Core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
canbus
CTU CAN FD IP Core
Commits
626ccb50
Commit
626ccb50
authored
Mar 11, 2019
by
Martin Jeřábek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testfw: ghw_parse: fix stupid errors
parent
52d3b2f3
Pipeline
#6712
passed with stages
in 13 minutes and 36 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
test/testfw/ghw_parse/hierarchy.py
test/testfw/ghw_parse/hierarchy.py
+1
-1
test/testfw/gtkwave.py
test/testfw/gtkwave.py
+4
-1
No files found.
test/testfw/ghw_parse/hierarchy.py
View file @
626ccb50
...
...
@@ -74,7 +74,7 @@ def parse(s: str) -> dict:
curr_ws
=
0
last
=
dict
()
stack
=
[
last
]
for
i
,
line
in
enumerate
(
lines
[:
4096
]
):
for
i
,
line
in
enumerate
(
lines
):
l
=
line
.
lstrip
()
if
not
l
:
continue
...
...
test/testfw/gtkwave.py
View file @
626ccb50
...
...
@@ -81,11 +81,11 @@ class TclFuncs:
self
.
format
=
'hex'
self
.
signal
=
None
self
.
isdivider
=
False
self
.
group
=
None
self
.
expand
=
False
self
.
color
=
None
def
__init__
(
self
):
self
.
group
=
None
self
.
reset
()
@
staticmethod
...
...
@@ -145,8 +145,10 @@ class TclFuncs:
pass
elif
a0
==
'-group'
:
if
o
.
group
:
log
.
debug
(
'Closing group {}'
.
format
(
o
.
group
))
self
.
gtkw
.
end_group
(
o
.
group
,
closed
=
False
)
o
.
group
=
args
[
i
]
log
.
debug
(
'Opening group {}'
.
format
(
o
.
group
))
self
.
gtkw
.
begin_group
(
o
.
group
,
closed
=
False
)
i
+=
1
elif
a0
[
0
]
==
'-'
:
...
...
@@ -164,6 +166,7 @@ class TclFuncs:
self
.
_add_trace
(
signal
,
type
,
label
=
o
.
label
,
datafmt
=
o
.
format
,
expand
=
o
.
expand
,
color
=
o
.
color
)
o
.
reset
()
if
o
.
group
:
log
.
debug
(
'Closing group {}'
.
format
(
o
.
group
))
self
.
gtkw
.
end_group
(
o
.
group
)
...
...
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