From fe01afdbdfc647a568c9f3c500f9e4d1e48b6fc0 Mon Sep 17 00:00:00 2001 From: Abdallah Ammar Date: Fri, 15 Nov 2024 18:55:39 +0100 Subject: [PATCH] user env on github machines --- tests/lunch_bench.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/lunch_bench.py b/tests/lunch_bench.py index d73b369..617ec5d 100644 --- a/tests/lunch_bench.py +++ b/tests/lunch_bench.py @@ -20,7 +20,8 @@ current_date = datetime.now() quack_root = os.getenv('QUACK_ROOT') # User Name -user_name = os.getlogin() +# Fallback to 'default_user' if USER is not set +user_name = os.getenv('USER', 'default_user') # Operating System os_name = platform.system()