[Piuparts-commits] [piuparts] 04/07: p: add support for post_test_* custom scripts
Holger Levsen
holger at layer-acht.org
Wed Aug 2 21:12:03 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit f590b07f980f2af34702856f4d2078d48df398d3
Author: Andreas Beckmann <anbe at debian.org>
Date: Tue Aug 1 23:50:36 2017 +0200
p: add support for post_test_* custom scripts
Signed-off-by: Andreas Beckmann <anbe at debian.org>
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
README.txt | 10 ++++++++--
debian/changelog | 6 ++++++
piuparts.py | 6 ++++++
3 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/README.txt b/README.txt
index d90b4ee..225a66d 100644
--- a/README.txt
+++ b/README.txt
@@ -240,11 +240,17 @@ times. The PIUPARTS_TEST and PIUPARTS_PHASE variables can be used
to distinguish the cases.
'pre_remove_' - before *removing* your package.
+Depending on the test, this may be run multiple times.
'post_remove_' - after *removing* your package.
+Depending on the test, this may be run multiple times.
-'post_purge_' - after *purging* your package. Right before
-comparing the chroot with the initially recorded metadata.
+'post_purge_' - after *purging* your package.
+Depending on the test, this may be run multiple times.
+
+'post_test_' - at the end of each test. Right before performing
+final checks and comparing the chroot with the reference chroot
+metadata.
'pre_distupgrade_' - before *upgrading* the chroot to the *next
distribution*. The next distribution is available in the variable
diff --git a/debian/changelog b/debian/changelog
index 277a9bc..16add75 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,13 @@
piuparts (0.79) UNRELEASED; urgency=medium
+ [ Holger Levsen ]
* slave-run: properly delete all screenlogs from previous runs.
+ [ Andreas Beckmann ]
+ * piuparts.py:
+ - Add post_test_* custom scripts. These are run exactly once at the end
+ of each test (before comparing with the reference chroot state).
+
-- Holger Levsen <holger at debian.org> Mon, 31 Jul 2017 13:35:18 -0400
piuparts (0.78) unstable; urgency=medium
diff --git a/piuparts.py b/piuparts.py
index 3769ec9..fd697fb 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -2604,6 +2604,8 @@ def install_purge_test(chroot, chroot_state, package_files, packages, extra_pack
# Remove all packages from the chroot that weren't there initially.
chroot.restore_selections(chroot_state, packages)
+ chroot.run_scripts("post_test")
+
chroot.check_for_no_processes(fail=True)
chroot.check_for_broken_symlinks()
@@ -2645,6 +2647,8 @@ def install_upgrade_test(chroot, chroot_state, package_files, packages, old_pack
# Remove all packages from the chroot that weren't there initially.
chroot.restore_selections(chroot_state, packages)
+ chroot.run_scripts("post_test")
+
chroot.check_for_no_processes(fail=True)
chroot.check_for_broken_symlinks()
@@ -2788,6 +2792,8 @@ def install_and_upgrade_between_distros(package_files, packages_qualified):
# Remove all packages from the chroot that weren't in the reference chroot.
chroot.restore_selections(chroot_state, packages_qualified)
+ chroot.run_scripts("post_test")
+
chroot.check_for_no_processes(fail=True)
result = check_results(chroot, chroot_state, file_owners)
--
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