Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
af474a28
Commit
af474a28
authored
10 years ago
by
Kenneth Hiemstra
Browse files
Options
Downloads
Patches
Plain Diff
removed 'with'
parent
f7a59e4d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
boards/uniboard1/designs/unb1_test/tb/python/tc_unb1_test.py
+25
-23
25 additions, 23 deletions
boards/uniboard1/designs/unb1_test/tb/python/tc_unb1_test.py
with
25 additions
and
23 deletions
boards/uniboard1/designs/unb1_test/tb/python/tc_unb1_test.py
+
25
−
23
View file @
af474a28
...
@@ -174,24 +174,25 @@ def test_info(tc,io,cmd):
...
@@ -174,24 +174,25 @@ def test_info(tc,io,cmd):
tc
.
append_log
(
1
,
'
>>> %s
'
%
help_text
(
tc
,
io
,
cmd
))
tc
.
append_log
(
1
,
'
>>> %s
'
%
help_text
(
tc
,
io
,
cmd
))
tc
.
append_log
(
3
,
'
>>>
'
)
tc
.
append_log
(
3
,
'
>>>
'
)
with
node_io
.
NodeIO
(
tc
.
nodeImages
,
tc
.
base_ip
)
as
temp_io
:
#with node_io.NodeIO(tc.nodeImages, tc.base_ip) as temp_io:
info
=
pi_system_info
.
PiSystemInfo
(
tc
,
temp_io
)
temp_io
=
node_io
.
NodeIO
(
tc
.
nodeImages
,
tc
.
base_ip
)
tc
.
append_log
(
1
,
'
>>> reading REGMAPs
'
)
info
=
pi_system_info
.
PiSystemInfo
(
tc
,
temp_io
)
info
.
make_register_info
()
tc
.
append_log
(
1
,
'
>>> reading REGMAPs
'
)
tc
.
append_log
(
3
,
''
)
info
.
make_register_info
()
info
.
read_system_info
()
tc
.
append_log
(
3
,
''
)
tc
.
append_log
(
3
,
''
)
info
.
read_system_info
()
info
.
read_use_phy
()
tc
.
append_log
(
3
,
''
)
tc
.
append_log
(
3
,
''
)
info
.
read_use_phy
()
design_name
=
info
.
read_design_name
()
tc
.
append_log
(
3
,
''
)
tc
.
append_log
(
1
,
'
>>> design_name=%s
'
%
design_name
)
design_name
=
info
.
read_design_name
()
tc
.
append_log
(
3
,
''
)
tc
.
append_log
(
1
,
'
>>> design_name=%s
'
%
design_name
)
info
.
read_stamps
()
tc
.
append_log
(
3
,
''
)
tc
.
append_log
(
3
,
''
)
info
.
read_stamps
()
info
.
read_design_note
()
tc
.
append_log
(
3
,
''
)
info
.
read_design_note
()
expected_design_name
=
tc
.
gpString
expected_design_name
=
tc
.
gpString
if
cmd
==
3
and
expected_design_name
!=
''
:
if
cmd
==
3
and
expected_design_name
!=
''
:
tc
.
set_section_id
(
'
Verify System Info -
'
)
tc
.
set_section_id
(
'
Verify System Info -
'
)
tc
.
append_log
(
1
,
'
>>> Verifying design_name == %s
'
%
expected_design_name
)
tc
.
append_log
(
1
,
'
>>> Verifying design_name == %s
'
%
expected_design_name
)
for
name
in
design_name
:
for
name
in
design_name
:
...
@@ -252,16 +253,17 @@ def test_remu(tc,io,cmd):
...
@@ -252,16 +253,17 @@ def test_remu(tc,io,cmd):
tc
.
append_log
(
3
,
'
>>>
'
)
tc
.
append_log
(
3
,
'
>>>
'
)
dummy_tc
=
test_case
.
Testcase
(
'
Dummy TB -
'
,
''
)
dummy_tc
=
test_case
.
Testcase
(
'
Dummy TB -
'
,
''
)
with
node_io
.
NodeIO
(
tc
.
nodeImages
,
tc
.
base_ip
)
as
temp_io
:
#with node_io.NodeIO(tc.nodeImages, tc.base_ip) as temp_io:
dummy_tc
.
set_result
(
'
PASSED
'
)
temp_io
=
node_io
.
NodeIO
(
tc
.
nodeImages
,
tc
.
base_ip
)
dummy_tc
.
set_result
(
'
PASSED
'
)
Remu
=
pi_remu
.
PiRemu
(
dummy_tc
,
temp_io
)
Remu
=
pi_remu
.
PiRemu
(
dummy_tc
,
temp_io
)
try
:
try
:
Remu
.
write_user_reconfigure
()
Remu
.
write_user_reconfigure
()
except
:
except
:
pass
# ignoring FAILED
pass
# ignoring FAILED
if
dummy_tc
.
get_result
()
==
'
FAILED
'
:
if
dummy_tc
.
get_result
()
==
'
FAILED
'
:
tc
.
append_log
(
1
,
'
Result=%s but ignoring this
'
%
dummy_tc
.
get_result
())
tc
.
append_log
(
1
,
'
Result=%s but ignoring this
'
%
dummy_tc
.
get_result
())
del
dummy_tc
del
dummy_tc
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment