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:
parent
d7388d43ba
commit
702b21f920
1 changed files with 3 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue