Fix: Support universal binary lookup in test_linux.sh for remote servers

This commit is contained in:
ospab 2026-05-14 22:02:35 +03:00
parent 8f48834c38
commit 94b794b79a
1 changed files with 8 additions and 1 deletions

View File

@ -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_$$"