Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
commit aafb0e677ba3e6cfa222d55e84e85a1d25cc2277 Author: Bohuslav Kabrda bkabrda@redhat.com Date: Wed Feb 20 08:58:41 2013 +0100
Fine tune the manage.py test command
coprs_frontend/manage.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/coprs_frontend/manage.py b/coprs_frontend/manage.py index f4054fc..1b798e9 100755 --- a/coprs_frontend/manage.py +++ b/coprs_frontend/manage.py @@ -16,7 +16,8 @@ from coprs.logic import coprs_logic class TestCommand(Command): def run(self, test_args): os.environ['COPRS_ENVIRON_UNITTEST'] = '1' - subprocess.call(['py.test'] + test_args) + os.environ['PYTHONPATH'] = '.' + subprocess.call(['py.test'] + (test_args or []))
option_list = ( Option('-a',
copr-devel@lists.fedorahosted.org