Skip to content
Snippets Groups Projects
Commit af474a28 authored by Kenneth Hiemstra's avatar Kenneth Hiemstra
Browse files

removed 'with'

parent f7a59e4d
Branches
No related tags found
No related merge requests found
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment