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).
This commit is contained in:
russell@unturf.com 2026-01-27 19:15:56 -05:00
parent d7388d43ba
commit 702b21f920

View file

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