Package: asciidoc / 8.6.9-5

testasciidoc_usage.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Author: Alexander Wirt <formorer@debian.org>
Description: remove .py extension for usage and tell it where the conf is
--- a/tests/testasciidoc.py
+++ b/tests/testasciidoc.py
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 
-USAGE = '''Usage: testasciidoc.py [OPTIONS] COMMAND
+USAGE = '''Usage: testasciidoc [OPTIONS] COMMAND
 
 Run AsciiDoc conformance tests specified in configuration FILE.
 
@@ -12,7 +12,7 @@
 Options:
   -f, --conf-file=CONF_FILE
         Use configuration file CONF_FILE (default configuration file is
-        testasciidoc.conf in testasciidoc.py directory)
+        /etc/asciidoc/testasciidoc.conf)
   --force
         Update all test data overwriting existing data'''
 
@@ -385,7 +385,7 @@
     if len(args) == 0:
         usage()
         sys.exit(1)
-    conffile = os.path.join(os.path.dirname(sys.argv[0]), 'testasciidoc.conf')
+    conffile = '/etc/asciidoc/testasciidoc.conf'
     force = False
     for o,v in opts:
         if o == '--force':