eduardo schettino avatar eduardo schettino committed 2bb51e3 Draft

more fixes

Comments (0)

Files changed (1)

pytest_incremental.py

     def __init__(self, py_files):
         self.py_files = py_files
         self.py_mods = ModuleSet(py_files)
-        print "YYYYYYYYYYYY", self.py_files
 
     def gen_watched_files(self):
         """task to be used as a result_dep
                     config.args[0] == os.getcwd()):
                 msg = ("(plugin-incremental) You are required to setup "
                        "--watch-path in order to use the plugin together "
-                       "with an path argument.")
+                       "with a path argument.")
                 raise pytest.UsageError(msg)
             if self.type == "master":
                 msg = ("(plugin-incremental) You are required to setup "
         """create a graph of imports in dot format
         dot -Tpng -o imports.png imports.dot
         """
-        self.task_list = self._load_tasks(self.test_files)
-        doit_run(self.DB_FILE, self.task_list, StringIO.StringIO(), ['get_dep'],
-                 continue_=True, reporter=OutdatedReporter)
+        self._run_doit(self.test_files, StringIO.StringIO(), ['get_dep'])
         dep_dict = {}
         for task in self.task_list:
             if task.name.startswith('get_dep:'):
             config.slaveoutput['test_files'] = self.test_files
             return
         elif self.type == "master":
-            self.task_list = self._load_tasks(self.test_files)
             # we need to make sure task have all calc_dep calculated
-            doit_run(self.DB_FILE, self.task_list, StringIO.StringIO(),
-                     ['outdated'],
-                     continue_=True, reporter=OutdatedReporter)
+            outdated_tasks = ["outdated:%s" % path for path in self.test_files]
+            self._run_doit(self.test_files, StringIO.StringIO(), outdated_tasks)
 
         # debug messages
         # print
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.