From 055aa310d9018da9c94157b59da31ce8e4955dea Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Sat, 19 May 2012 10:58:33 +0200 Subject: [PATCH] pck-update: do not reinitialize the tests counter before executing a new test battery Signed-off-by: Davide Madrisan --- ChangeLog | 3 +++ plugins/pck-update.in | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 21d90d9..cd55e75 100644 --- a/ChangeLog +++ b/ChangeLog @@ -64,6 +64,9 @@ Changes in version 1.12.0 * tests/test01_pkgquality, ests/test02_pkgsecurity - Davide Madrisan: Rework output by adding the numbering of tests. + * pck-update - Davide Madrisan: + Do not reinitialize the tests counter before executing a new test battery. + ------------------------------------------------------------------------------- Changes in version 1.10.0 diff --git a/plugins/pck-update.in b/plugins/pck-update.in index b70719a..20e7e53 100644 --- a/plugins/pck-update.in +++ b/plugins/pck-update.in @@ -2759,13 +2759,13 @@ can't create temporary directory"": $tmpextractdir/$i" echo " $test_number" || echo " $test_number" } - local test_number=1 - for fname in $testdir/*; do - notify.debug "$FUNCNAME: running test: \`$fname'" - ( . $fname + ( local test_number=1 + for fname in $testdir/*; do + notify.debug "$FUNCNAME: running test: \`$fname'" + . $fname alltests --infofile "$tmpextractdir/rpmpkg.info" \ - --tmpdir "$tmpextractdir" ) - done + --tmpdir "$tmpextractdir" + done ) # temporary files cleanup rm -fr $tmpextractdir