P4DTI issue job000274

TitleIt's hard to run the unit tests on an installed P4DTI
Statusclosed
Priorityoptional
Assigned userGareth Rees
OrganizationRavenbrook
DescriptionIt's hard to make the unit tests run on an installed P4DTI. You have to edit the file test_p4dti.py and change the line starting "sys.path.append" so that it imports modules from the P4DTI installation directory.
AnalysisThe test_p4dti.py has this path hard-coded.
It should get it from some external source, for example the configuration file, or an environment variable, or a command-line option.
How foundmanual_test
Evidence<http://www.ravenbrook.com/project/p4dt...3-12/integration-kit/test/test_p4dti.py>
Observed in1.1.6
Introduced in1.1.0
Created byGareth Rees
Created on2001-03-22 17:52:45
Last modified byGareth Rees
Last modified on2001-12-10 19:35:42
History2001-03-12 GDR Created.

Fixes

Change Effect Date User Description
22632 closed 2001-09-24 16:49:54 Gareth Rees Use environment variable P4DTI_PATH (if set) to find the P4DTI sources, so that testers can test installed copies of the P4DTI as well as copies synced from the repository.