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_details': [], # List of notable serial events
|
||||
}
|
||||
# Attach simulation scenario name when running in simulate mode
|
||||
run_stats['scenario'] = None
|
||||
# Attach scenario name: simulation scenario or production indicator
|
||||
if use_mock_terminal:
|
||||
# Simulation mode: use configured scenario from mock
|
||||
try:
|
||||
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
|
||||
run_stats['scenario'] = GRIFO_M_PBIT_mock._scenario_list[idx]
|
||||
else:
|
||||
run_stats['scenario'] = None
|
||||
except Exception:
|
||||
run_stats['scenario'] = None
|
||||
else:
|
||||
# Production mode: indicate real hardware execution
|
||||
run_stats['scenario'] = 'Production Run'
|
||||
test_statistics['total_runs'] += 1
|
||||
|
||||
# Reset serial statistics for this run
|
||||
|
||||
Loading…
Reference in New Issue
Block a user