From 702b21f9206010ad4049b8b9f08fb790f3c2bd3e Mon Sep 17 00:00:00 2001 From: "russell@unturf.com" Date: Tue, 27 Jan 2026 19:15:56 -0500 Subject: [PATCH] fix(qr): pass file path without -s flag for proper file execution With -s, the un CLI treats the positional argument as inline code text. Without -s, it reads the file from disk and auto-detects the language from the extension. The QR test was failing across 18 languages because test/qr.py was being interpreted as code (test divided by qr.py). --- scripts/test-sdk.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/test-sdk.sh b/scripts/test-sdk.sh index 7720a65..929d93d 100755 --- a/scripts/test-sdk.sh +++ b/scripts/test-sdk.sh @@ -503,8 +503,10 @@ echo "--- QR Code Generation ---" QR_FILE=$(get_qr_file "$LANG") if [ -n "$QR_FILE" ] && [ -f "$QR_FILE" ]; then # Test 9.1: QR code generation produces structured output + # Pass file path without -s: un CLI reads the file and auto-detects language + # (with -s, the positional arg is treated as inline code, not a file path) run_test "qr_generate" \ - "build/un -s '$LANG' '$QR_FILE'" \ + "build/un '$QR_FILE'" \ "QR:unsandbox-qr-ok:ROWS:[0-9]+" else echo "SKIP: No QR test file for $LANG"