[Piuparts-commits] [piuparts] 01/03: Added option "--single-packages"

Holger Levsen holger at moszumanska.debian.org
Fri Jan 8 12:16:28 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 378a350b9d0b64afad8b1f01a78b226a8cc1d4af
Author: Sven Haardiek <Sven at Haardiek.de>
Date:   Thu Jan 7 15:20:39 2016 +0100

    Added option "--single-packages"
    
    Added option "--single-packages" to test every package specified via
    path or package name individually.
    
    Signed-off-by: Sven Haardiek <Sven at Haardiek.de>
---
 piuparts.1.txt |  3 +++
 piuparts.py    | 12 +++++++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/piuparts.1.txt b/piuparts.1.txt
index 3b0f6e7..78300d5 100644
--- a/piuparts.1.txt
+++ b/piuparts.1.txt
@@ -214,6 +214,9 @@ Note that file: addresses works if the directories are made accessible from with
 *--single-changes-list*::
   When processing changes files, piuparts will process the packages in each individual changes file seperately. This option will set piuparts to scan the packages of all changes files together along with any individual package files that may have been given on the command line.
 
+*--single-packages*::
+  Process every paths to package file or package name individually. The piuparts process runs multiple times.
+
 *--skip-minimize*::
   Allow skip minimize chroot step. This is useful when you want to test several packages with piuparts. You can prepare a tarball already minimized and skip this step in all the tests. This is the default now.
 
diff --git a/piuparts.py b/piuparts.py
index 4ae2928..a73fd19 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -151,6 +151,7 @@ class Settings:
         self.max_command_output_size = 4 * 1024 * 1024  # 4 MB (daptup on dist-upgrade)
         self.max_command_runtime = 30 * 60  # 30 minutes (texlive-full on dist-upgrade)
         self.single_changes_list = False
+        self.single_packages = False
         self.args_are_package_files = True
         # distro setup
         self.proxy = None
@@ -2873,6 +2874,10 @@ def parse_command_line():
                       action="store_true",
                       help="test all packages from all changes files together.")
 
+    parser.add_option("--single-packages", default=False,
+                      action="store_true",
+                      help="test all packages from the command line individually.")
+
     parser.add_option("--skip-cronfiles-test",
                       action="store_true", default=False,
                       help="Skip testing the output from the cron files.")
@@ -2943,6 +2948,7 @@ def parse_command_line():
     settings.tmpdir = opts.tmpdir
     settings.keep_tmpdir = opts.keep_tmpdir
     settings.single_changes_list = opts.single_changes_list
+    settings.single_packages = opts.single_packages
     settings.args_are_package_files = not opts.apt
     # distro setup
     settings.proxy = opts.proxy
@@ -3183,7 +3189,11 @@ def main():
             process_packages(package_list)
 
     if regular_packages_list:
-        process_packages(regular_packages_list)
+        if settings.single_packages:
+            for package in regular_packages_list:
+                process_packages([package])
+        else:
+            process_packages(regular_packages_list)
 
     logging.info("PASS: All tests.")
     logging.info("piuparts run ends.")

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list