File: tests-drops-unoconv-dependency.diff

package info (click to toggle)
auto-multiple-choice 1.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 92,612 kB
  • sloc: perl: 26,752; xml: 24,889; cpp: 1,997; python: 895; makefile: 569; sh: 233; ansic: 195
file content (19 lines) | stat: -rw-r--r-- 825 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Drop unoconv dependency for tests
 Replaces unoconv with a direct libreoffic call for ODS->CSV conversion used in tests.
Author: Alexis Bienvenüe <pado@passoire.fr>
Bug-Debian: https://bugs.debian.org/1108829
Forwarded: not-needed
Last-Update: 2025-07-05
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/tests/AMC/Test.pm
+++ b/tests/AMC/Test.pm
@@ -1127,7 +1127,7 @@
             {
                 local $ENV{LANG} = 'C';
                 $ok =
-                  run( ["unoconv", "-f", "csv", "$self->{temp_dir}/export.ods"],
+                    run(["libreoffice", "--convert-to", "csv:Text - txt - csv (StarCalc):44,34,UTF8", "--outdir", "$self->{temp_dir}", "$self->{temp_dir}/export.ods" ],
                     '2>>', '/dev/null' );
             }
             if ( !$ok ) {