From f6839c0b699f3df53aabcfc13cf0aa29a64ba765 Mon Sep 17 00:00:00 2001 From: Jorgen Kvalvaag Date: Thu, 21 Nov 2024 08:29:19 +0100 Subject: [PATCH] tests: Fix missing env var error Temporary fix for missing environment variable. Signed-off-by: Jorgen Kvalvaag --- tests/on_target/tests/test_conn_bridge.py | 2 +- tests/on_target/tests/test_serial_dfu.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/on_target/tests/test_conn_bridge.py b/tests/on_target/tests/test_conn_bridge.py index 42171b26..7d432213 100644 --- a/tests/on_target/tests/test_conn_bridge.py +++ b/tests/on_target/tests/test_conn_bridge.py @@ -29,7 +29,7 @@ SEGGER_NRF53 = os.getenv('SEGGER_NRF53') SEGGER_NRF91 = os.getenv('SEGGER_NRF91') -CONNECTIVITY_BRIDGE_UART = "THINGY91X_" + os.getenv('UART_ID') +CONNECTIVITY_BRIDGE_UART = "THINGY91X_" + os.getenv('UART_ID', "") diff --git a/tests/on_target/tests/test_serial_dfu.py b/tests/on_target/tests/test_serial_dfu.py index fe9fa58f..5aa690e9 100644 --- a/tests/on_target/tests/test_serial_dfu.py +++ b/tests/on_target/tests/test_serial_dfu.py @@ -26,7 +26,7 @@ SEGGER_NRF53 = os.getenv('SEGGER_NRF53') SEGGER_NRF91 = os.getenv('SEGGER_NRF91') -CONNECTIVITY_BRIDGE_UART = "THINGY91X_" + os.getenv('UART_ID') +CONNECTIVITY_BRIDGE_UART = "THINGY91X_" + os.getenv('UART_ID', "") @pytest.fixture(scope="function") def t91x_dfu():