Skip to content

Commit 19ad15a

Browse files
committed
modify example tests. delete unused arguments
1 parent 0478edc commit 19ad15a

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

examples/system/app_trace_to_host/example_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
@ttfw_idf.idf_example_test(env_tag="test_jtag_arm")
88
def test_examples_app_trace_to_host(env, extra_data):
9-
109
rel_project_path = os.path.join('examples', 'system', 'app_trace_to_host')
1110
dut = env.get_dut('app_trace_to_host', rel_project_path)
1211
idf_path = dut.app.get_sdk_path()
@@ -28,8 +27,7 @@ def test_examples_app_trace_to_host(env, extra_data):
2827

2928
with ttfw_idf.CustomProcess(' '.join([os.path.join(idf_path, 'tools/esp_app_trace/logtrace_proc.py'),
3029
'adc.log',
31-
os.path.join(dut.app.get_binary_path(rel_project_path),
32-
'app_trace_to_host.elf')]),
30+
os.path.join(dut.app.binary_path, 'app_trace_to_host.elf')]),
3331
logfile='logtrace_proc.log') as logtrace:
3432
logtrace.pexpect_proc.expect_exact('Parse trace file')
3533
logtrace.pexpect_proc.expect_exact('Parsing completed.')

examples/system/sysview_tracing/example_test.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ def test_examples_sysview_tracing(env, extra_data):
1313

1414
rel_project_path = os.path.join('examples', 'system', 'sysview_tracing')
1515
dut = env.get_dut('sysview_tracing', rel_project_path)
16-
idf_path = dut.app.get_sdk_path()
17-
proj_path = os.path.join(idf_path, rel_project_path)
18-
elf_path = os.path.join(dut.app.get_binary_path(rel_project_path), 'sysview_tracing.elf')
16+
proj_path = os.path.join(dut.app.idf_path, rel_project_path)
17+
elf_path = os.path.join(dut.app.binary_path, 'sysview_tracing.elf')
1918

2019
def get_temp_file():
2120
with tempfile.NamedTemporaryFile(delete=False) as f:

examples/system/sysview_tracing_heap_log/example_test.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ def test_examples_sysview_tracing_heap_log(env, extra_data):
1212

1313
rel_project_path = os.path.join('examples', 'system', 'sysview_tracing_heap_log')
1414
dut = env.get_dut('sysview_tracing_heap_log', rel_project_path)
15-
idf_path = dut.app.get_sdk_path()
16-
proj_path = os.path.join(idf_path, rel_project_path)
17-
elf_path = os.path.join(dut.app.get_binary_path(rel_project_path), 'sysview_tracing_heap_log.elf')
15+
proj_path = os.path.join(dut.app.idf_path, rel_project_path)
16+
elf_path = os.path.join(dut.app.binary_path, 'sysview_tracing_heap_log.elf')
1817

1918
def get_temp_file():
2019
with tempfile.NamedTemporaryFile(delete=False) as f:
@@ -45,7 +44,7 @@ def get_temp_file():
4544
# dut has been restarted by gdb since the last dut.expect()
4645
dut.expect('esp_apptrace: Initialized TRAX on CPU0')
4746

48-
with ttfw_idf.CustomProcess(' '.join([os.path.join(idf_path, 'tools/esp_app_trace/sysviewtrace_proc.py'),
47+
with ttfw_idf.CustomProcess(' '.join([os.path.join(dut.app.idf_path, 'tools/esp_app_trace/sysviewtrace_proc.py'),
4948
'-p',
5049
'-b', elf_path,
5150
tempfiles[1]]),

tools/test_apps/system/monitor_ide_integration/app_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def test_monitor_ide_integration(env, extra_data):
6565
for name in config_names:
6666
Utility.console_log('Checking config "{}"... '.format(name), 'green', end='')
6767
dut = env.get_dut('panic', rel_proj_path, app_config_name=name)
68-
monitor_path = os.path.join(dut.app.get_sdk_path(), 'tools/idf_monitor.py')
69-
elf_path = os.path.join(dut.app.get_binary_path(rel_proj_path), 'panic.elf')
68+
monitor_path = os.path.join(dut.app.idf_path, 'tools/idf_monitor.py')
69+
elf_path = os.path.join(dut.app.binary_path, 'panic.elf')
7070
dut.start_app()
7171
# Closing the DUT because we will reconnect with IDF Monitor
7272
env.close_dut(dut.name)

0 commit comments

Comments
 (0)