[testutils] small improvements draft
authorDavid Douard <david.douard@logilab.fr>
Thu, 13 Nov 2014 14:55:11 +0100
changeset 1752 31c34cf9f19f
parent 1751 56eb553a3618
child 1753 2fc1207a3ba7
[testutils] small improvements
testutils.py
--- a/testutils.py	Thu Nov 13 14:53:00 2014 +0100
+++ b/testutils.py	Thu Nov 13 14:55:11 2014 +0100
@@ -174,6 +174,8 @@
                                    check_environment=u'NO_SETUPTOOLS=1\nDISPLAY=:1.0')
         quickrecipe = cnx.find('Recipe', name='apycot.quick').one()
         setuprecipe = cnx.find('Recipe', name='apycot.setup.distutils').one()
+        tc = cls.add_test_config(cnx, u'tc_quick', group=pyp_tc,
+                                 use_recipe=quickrecipe)
         for path in cls._repo_path:
             repo = cnx.create_entity(
                 'Repository', type=u'mercurial',
@@ -183,7 +185,8 @@
                 'ProjectEnvironment', name=u'pe_%s'%path,
                 check_config=u'env-option=value',
                 check_environment=u'SETUPTOOLS=1\nDISPLAY=:2.0',
-                setup_recipe=setuprecipe)
+                setup_recipe=setuprecipe,
+                local_repository=repo)
             cls.add_test_config(cnx, u'tc_%s'%path, env=pe,
                                 group=pyp_tc, use_recipe=quickrecipe)
         cnx.commit()