From ef183550b7acfe69e8f615f5234e3014a36fbedc Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 27 Jul 2015 12:32:20 +0100 Subject: Test suite: build-modes tests: Generate id rather than using counter --- tests/lib-build-modes | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'tests') diff --git a/tests/lib-build-modes b/tests/lib-build-modes index 836d1ec..5daf3bf 100644 --- a/tests/lib-build-modes +++ b/tests/lib-build-modes @@ -20,8 +20,6 @@ exec git "$@" END chmod +x $tmp/stunt-git - counter=0 - if zgrep 'dpkg-buildpackage: Make dependency checks fatal for -S' \ /usr/share/doc/dpkg-dev/changelog.gz; then dpkgbuildpackage_deps_for_clean=true @@ -95,11 +93,14 @@ bm-compute-expected () { bm-run-one () { local args="--clean=$cleanmode $real_act" - heading="===== [$counter $branch $cleanmode $act] dgit $args =====" + bmid="$act,$cleanmode,$branch" + bmid=${bmid// /_} + + heading="===== [$bmid] dgit $args =====" - bmlog=$tmp/run-$counter-output - bmexp=$tmp/run-$counter-expected - bmgot=$tmp/run-$counter-results + bmlog=$tmp/run.$bmid.output + bmexp=$tmp/run.$bmid.expected + bmgot=$tmp/run.$bmid.results bm-compute-expected @@ -140,8 +141,6 @@ bm-run-one () { $bm_quirk_before_diff [ $actual_status = failure ] || diff -U10 $bmexp $bmgot - - counter=$(( $counter + 1 )) } bm-act-iterate () { -- cgit v1.2.3