From 94b794b79a2ac2dfcaccb05ad218ece545f80d69 Mon Sep 17 00:00:00 2001 From: ospab Date: Thu, 14 May 2026 22:02:35 +0300 Subject: [PATCH] Fix: Support universal binary lookup in test_linux.sh for remote servers --- scripts/test_linux.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/test_linux.sh b/scripts/test_linux.sh index a7349be..e9fa01a 100644 --- a/scripts/test_linux.sh +++ b/scripts/test_linux.sh @@ -12,7 +12,14 @@ NC='\033[0m' # No Color # Locate target binary SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -OSTP_BIN="$SCRIPT_DIR/../dist/linux/ostp" + +# Check if binary is in the same directory (production server layout) +if [ -f "$SCRIPT_DIR/ostp" ]; then + OSTP_BIN="$SCRIPT_DIR/ostp" +else + # Fallback to workspace development layout + OSTP_BIN="$SCRIPT_DIR/../dist/linux/ostp" +fi # Temporary Sandbox Directory for Isolating Tests SANDBOX="/tmp/ostp_test_sandbox_$$"