|
Lines 22-29
import logging
Link Here
|
| 22 |
import os |
22 |
import os |
| 23 |
import tools |
23 |
import tools |
| 24 |
import univention.testing.utils as utils |
24 |
import univention.testing.utils as utils |
|
|
25 |
from univention.config_registry import ConfigRegistry |
| 25 |
|
26 |
|
|
|
27 |
UCR = ConfigRegistry() |
| 28 |
UCR.load() |
| 26 |
|
29 |
|
|
|
30 |
|
| 31 |
SVN_URL = 'http://forge.univention.org/svn/dev/branches/ucs-{ucr[version/version]}/ucs-{ucr[version/version]}-{ucr[version/patchlevel]}'.format(ucr=UCR) |
| 27 |
SVN_PATH = 'SVN' |
32 |
SVN_PATH = 'SVN' |
| 28 |
DUMMY_MOD_DIR = 'management/univention-management-console-module-dummy' |
33 |
DUMMY_MOD_DIR = 'management/univention-management-console-module-dummy' |
| 29 |
DUMMY_MOD_EXPECTED_PO_PATHS = [ |
34 |
DUMMY_MOD_EXPECTED_PO_PATHS = [ |
|
Lines 47-53
if __name__ == '__main__':
Link Here
|
| 47 |
os.chdir(tmp_dir) |
52 |
os.chdir(tmp_dir) |
| 48 |
|
53 |
|
| 49 |
try: |
54 |
try: |
| 50 |
tools.call('svn', 'checkout', 'http://forge.univention.org/svn/dev/branches/ucs-4.1/ucs-4.1-1/management', os.path.join(SVN_PATH, 'management')) |
55 |
tools.call('svn', 'checkout', os.path.join(SVN_URL, 'management'), os.path.join(SVN_PATH, 'management')) |
| 51 |
tools.call('univention-ucs-translation-build-package', '--source={}'.format(SVN_PATH), '--languagecode=XX', '--locale=fr_FR.UTF-8:UTF-8', '--language-name=TEST0') |
56 |
tools.call('univention-ucs-translation-build-package', '--source={}'.format(SVN_PATH), '--languagecode=XX', '--locale=fr_FR.UTF-8:UTF-8', '--language-name=TEST0') |
| 52 |
tools.call('univention-ucs-translation-fakemessage', TRANSLATION_PKG_NAME) |
57 |
tools.call('univention-ucs-translation-fakemessage', TRANSLATION_PKG_NAME) |
| 53 |
except tools.InvalidCommandError: |
58 |
except tools.InvalidCommandError: |