From 9915853e39b47533b5c23bcddd1c6087e6b9e00c Mon Sep 17 00:00:00 2001 From: Samiran Saha Date: Tue, 18 Nov 2025 01:06:53 +0530 Subject: [PATCH 1/3] remove python temp --- mac/user-interaction.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mac/user-interaction.sh b/mac/user-interaction.sh index ecba65d..6cd95cd 100644 --- a/mac/user-interaction.sh +++ b/mac/user-interaction.sh @@ -37,11 +37,11 @@ get_browserstack_credentials() { get_tech_stack() { local run_mode=$1 local tech_stack="" - if [[ "$RUN_MODE" == *"--silent"* || "$RUN_MODE" == *"--debug"* ]]; then + if [[ "$run_mode" == *"--silent"* || "$run_mode" == *"--debug"* ]]; then tech_stack="$TSTACK" log_msg_to "✅ Selected Tech Stack from environment: $tech_stack" else - tech_stack=$(osascript -e 'Tell application "System Events" to display dialog "Select installed tech stack:" buttons {"java", "python", "nodejs"} default button "java" with title "Testing Framework Technology Stack"' \ + tech_stack=$(osascript -e 'Tell application "System Events" to display dialog "Select installed tech stack:" buttons {"java", "nodejs"} default button "java" with title "Testing Framework Technology Stack"' \ -e 'button returned of result') fi log_msg_to "✅ Selected Tech Stack: $tech_stack" From d3396062f1978aa9cb5eebb15423d45cafa25f48 Mon Sep 17 00:00:00 2001 From: Samiran Saha Date: Wed, 19 Nov 2025 21:32:46 +0530 Subject: [PATCH 2/3] cleanup --- mac/common-utils.sh | 3 +-- mac/detect-os.sh | 31 ------------------------------- mac/device-machine-allocation.sh | 2 +- 3 files changed, 2 insertions(+), 34 deletions(-) delete mode 100644 mac/detect-os.sh diff --git a/mac/common-utils.sh b/mac/common-utils.sh index dae53f9..343f597 100644 --- a/mac/common-utils.sh +++ b/mac/common-utils.sh @@ -101,7 +101,7 @@ handle_app_upload() { app_platform="android" export APP_PLATFORM="$app_platform" log_msg_to "Exported APP_PLATFORM=$APP_PLATFORM" - elif [[ "$choice" == *"Upload my App"* ]]; then + elif [[ "$choice" == *"Upload my App"* ]]; then upload_custom_app else return 1 @@ -168,7 +168,6 @@ upload_custom_app() { export APP_PLATFORM="$app_platform" log_msg_to "Exported APP_PLATFORM=$APP_PLATFORM" - return 0 } # ===== Dynamic config generators ===== diff --git a/mac/detect-os.sh b/mac/detect-os.sh deleted file mode 100644 index 30ccd34..0000000 --- a/mac/detect-os.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -detect_os() { - local unameOut="" - unameOut="$(uname -s 2>/dev/null | tr '[:upper:]' '[:lower:]')" - local response="" - case "$unameOut" in - linux*) - # Detect WSL vs normal Linux - if grep -qi "microsoft" /proc/version 2>/dev/null; then - response="wsl" - else - response="linux" - fi - ;; - darwin*) - response="macos" - ;; - msys*|mingw*|cygwin*) - response="windows" - ;; - *) - response="unknown" - ;; - esac - echo "OS is: $response" - export NOW_OS=$response -} - -detect_os - diff --git a/mac/device-machine-allocation.sh b/mac/device-machine-allocation.sh index fbbe280..dba89aa 100644 --- a/mac/device-machine-allocation.sh +++ b/mac/device-machine-allocation.sh @@ -77,7 +77,7 @@ pick_terminal_devices() { # Check for valid input # --------------------------- if [[ -z "$platformName" || -z "$count" ]]; then - log_msg_to "Platform name for parallel count is invalid: $0 $platformName $count" + log_msg_to "Platform name for parallel count is invalid: $platformName $count" return 1 fi From 02d51f4e7afd74f1bb581b4e8855437bccc0a932 Mon Sep 17 00:00:00 2001 From: Samiran Saha Date: Mon, 24 Nov 2025 19:21:50 +0530 Subject: [PATCH 3/3] restore python --- .gitignore | 3 +++ mac/user-interaction.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cd53a9b --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.venv +env + diff --git a/mac/user-interaction.sh b/mac/user-interaction.sh index 6cd95cd..752abfe 100644 --- a/mac/user-interaction.sh +++ b/mac/user-interaction.sh @@ -41,7 +41,7 @@ get_tech_stack() { tech_stack="$TSTACK" log_msg_to "✅ Selected Tech Stack from environment: $tech_stack" else - tech_stack=$(osascript -e 'Tell application "System Events" to display dialog "Select installed tech stack:" buttons {"java", "nodejs"} default button "java" with title "Testing Framework Technology Stack"' \ + tech_stack=$(osascript -e 'Tell application "System Events" to display dialog "Select installed tech stack:" buttons {"java", "python", "nodejs"} default button "java" with title "Testing Framework Technology Stack"' \ -e 'button returned of result') fi log_msg_to "✅ Selected Tech Stack: $tech_stack"