[narval] honor lgprc setting for 'distribs'
authorDavid Douard <david.douard@logilab.fr>
Fri, 20 Mar 2015 14:42:23 +0100
changeset 1792 aab5607c5800
parent 1789 4c12479f1c70
child 1793 f99572f64d09
[narval] honor lgprc setting for 'distribs' Closes #5103229
_narval/checkers/apycot/lgp.py
--- a/_narval/checkers/apycot/lgp.py	Mon Feb 02 16:06:37 2015 +0100
+++ b/_narval/checkers/apycot/lgp.py	Fri Mar 20 14:42:23 2015 +0100
@@ -91,7 +91,7 @@
                     '\n'.join(list(log_file))))
 
     def do_check(self, test):
-        dist = self.options.get('lgp_build_distrib') or ['all']
+        dist = self.options.get('lgp_build_distrib')
         sign = self.options.get('lgp_sign')
         suffix = self.options.get('lgp_suffix')
         build_folder = os.path.join(test.project_path(), '..')
@@ -102,7 +102,9 @@
             handler = LgpLogHandler(self.writer)
             cmd = LGP.get_command(self.command)
             cmd.logger.addHandler(handler)
-            args = ['-v', '-s', sign, '-d', ','.join(dist), '-r', build_folder ]
+            args = ['-v', '-s', sign, '-r', build_folder]
+            if dist:
+                args += ['-d', ','.join(dist)]
             if suffix:
                 args += ['--suffix', '~rev%s' % repo.revision()]
             exit_status = cmd.main_run(args, LGP.rcfile)