summaryrefslogtreecommitdiff
path: root/debian/patches/control-test-executable-name
blob: f41517e2b1e5a3193666fbb827175322fe60d264 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Allow controlling which pdf2htmlEX executable is chosen for testing
Author: Johannes Schauer <j.schauer@email.de>
Forwarded: not-needed

--- a/test/test.py
+++ b/test/test.py
@@ -11,7 +11,7 @@ class Common(object):
     SRC_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
     TEST_DIR = os.path.join(SRC_DIR, 'test')
     DATA_DIR = os.path.join(SRC_DIR, 'share')
-    PDF2HTMLEX_PATH = os.path.join(SRC_DIR, 'pdf2htmlEX')
+    PDF2HTMLEX_PATH = os.getenv('PDF2HTMLEX_EXECUTABLE', os.path.join(SRC_DIR, 'pdf2htmlEX'))
 
     SAVE_TMP = bool(os.environ.get('P2H_TEST_SAVE_TMP'))
     GENERATING_MODE = bool(os.environ.get('P2H_TEST_GEN'))