aggiunta indicazione production run su gui
This commit is contained in:
parent
6d9681a98d
commit
4563926bda
@ -884,15 +884,20 @@ def test_proc():
|
|||||||
'serial_recycles': 0,
|
'serial_recycles': 0,
|
||||||
'serial_details': [], # List of notable serial events
|
'serial_details': [], # List of notable serial events
|
||||||
}
|
}
|
||||||
# Attach simulation scenario name when running in simulate mode
|
# Attach scenario name: simulation scenario or production indicator
|
||||||
run_stats['scenario'] = None
|
|
||||||
if use_mock_terminal:
|
if use_mock_terminal:
|
||||||
|
# Simulation mode: use configured scenario from mock
|
||||||
try:
|
try:
|
||||||
if hasattr(GRIFO_M_PBIT_mock, '_scenario_list') and GRIFO_M_PBIT_mock._scenario_list:
|
if hasattr(GRIFO_M_PBIT_mock, '_scenario_list') and GRIFO_M_PBIT_mock._scenario_list:
|
||||||
idx = repetition if repetition < len(GRIFO_M_PBIT_mock._scenario_list) else 0
|
idx = repetition if repetition < len(GRIFO_M_PBIT_mock._scenario_list) else 0
|
||||||
run_stats['scenario'] = GRIFO_M_PBIT_mock._scenario_list[idx]
|
run_stats['scenario'] = GRIFO_M_PBIT_mock._scenario_list[idx]
|
||||||
|
else:
|
||||||
|
run_stats['scenario'] = None
|
||||||
except Exception:
|
except Exception:
|
||||||
run_stats['scenario'] = None
|
run_stats['scenario'] = None
|
||||||
|
else:
|
||||||
|
# Production mode: indicate real hardware execution
|
||||||
|
run_stats['scenario'] = 'Production Run'
|
||||||
test_statistics['total_runs'] += 1
|
test_statistics['total_runs'] += 1
|
||||||
|
|
||||||
# Reset serial statistics for this run
|
# Reset serial statistics for this run
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user