blob: dd4cfcd01d429791fe7a55e5bc8e0b5d4b5faa01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
Description: Allow controlling the data directory when running tests
Author: Johannes Schauer <j.schauer@email.de>
Forwarded: not-needed
--- a/test/test.py
+++ b/test/test.py
@@ -10,7 +10,7 @@ import subprocess
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')
+ DATA_DIR = os.getenv('PDF2HTMLEX_SHARE', os.path.join(SRC_DIR, 'share'))
PDF2HTMLEX_PATH = os.getenv('PDF2HTMLEX_EXECUTABLE', os.path.join(SRC_DIR, 'pdf2htmlEX'))
SAVE_TMP = bool(os.environ.get('P2H_TEST_SAVE_TMP'))
|