From 4563926bda8962212448a73e85c1f099a0fa7e27 Mon Sep 17 00:00:00 2001 From: VALLONGOL Date: Mon, 2 Feb 2026 09:50:10 +0100 Subject: [PATCH] aggiunta indicazione production run su gui --- TestEnvironment/scripts/GRIFO_M_PBIT.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/TestEnvironment/scripts/GRIFO_M_PBIT.py b/TestEnvironment/scripts/GRIFO_M_PBIT.py index 7b205f3..a335df3 100644 --- a/TestEnvironment/scripts/GRIFO_M_PBIT.py +++ b/TestEnvironment/scripts/GRIFO_M_PBIT.py @@ -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