Source: python-pweave
Version: 0.30.3-4
Followup-For: Bug #1154260
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: origin-ubuntu tenacious ubuntu-patch
Control: tags -1 patch

Hi,

The test failure is not caused by texlive. debian/tests/control has two
stray double quotes that leave the shell command unbalanced:

  ; echo "Testing texw => tex"# => pdf:"
  ; echo "Testing mdw => tex"# => pdf:"

The first quote after "tex" closes the string, the "# => pdf:" is not a
comment because it is glued to the closing quote, and the final " opens a
new string that swallows the following lines. The command then fails to
parse, before anything runs:

  bash: -c: line 1: syntax error near unexpected token `('

This is the error in the autopkgtest logs, in Ubuntu on s390x for example.
Joining the Test-Command lines with spaces and running "bash -n -c" on the
result gives that same error with 0.30.3-4, and passes with the attached
patch, which only drops the stray " # => pdf:" from the two echo lines.
I have not run the whole test with the patch applied, only the syntax check.

Cheers,
Sebastien


-- System Information:
Debian Release: forky/sid
  APT prefers resolute-updates
  APT policy: (500, 'resolute-updates'), (500, 'resolute-security'), (500, 
'resolute'), (100, 'resolute-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 7.0.0-44-generic (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,7 +1,7 @@
 Test-Command: set -e
  ; cp debian/tests/examples/FIR_* "$AUTOPKGTEST_TMP"
  ; cd "$AUTOPKGTEST_TMP"
- ; echo "Testing texw => tex"# => pdf:"
+ ; echo "Testing texw => tex"
  ; pweave -f tex FIR_design_verb.texw
 # ; pdflatex FIR_design_verb.tex
  ; echo "Testing rstw => rst => html:"
@@ -12,7 +12,7 @@
  ; echo "Testing mdw => md => html (via pandoc):"
  ; pweave -f pandoc FIR_design.mdw
  ; pandoc -s --mathjax FIR_design.md -o FIR_design_pandoc.html
- ; echo "Testing mdw => tex"# => pdf:"
+ ; echo "Testing mdw => tex"
  ; pweave -f pandoc2latex FIR_design.mdw
 # ; pdflatex FIR_design.tex
 Depends: pandoc,

Reply via email to