summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-07-27 12:32:20 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-07-27 13:16:16 +0100
commitef183550b7acfe69e8f615f5234e3014a36fbedc (patch)
tree39f1791c29af91cfe0d6a0cab7bed2ede8d51972
parentcfec91c99eff2ed5d6e914b54ef81d9ddca78ca8 (diff)
Test suite: build-modes tests: Generate id rather than using counter
-rw-r--r--tests/lib-build-modes15
1 files changed, 7 insertions, 8 deletions
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 () {