chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
cfec91c
)
Test suite: build-modes tests: Generate id rather than using counter
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 27 Jul 2015 11:32:20 +0000
(12:32 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 27 Jul 2015 12:16:16 +0000
(13:16 +0100)
tests/lib-build-modes
patch
|
blob
|
history
diff --git
a/tests/lib-build-modes
b/tests/lib-build-modes
index 836d1ecef921e6c8e2ac30fa146691812fb3575f..5daf3bf57bb56186d4e8e22f3de43671f1467197 100644
(file)
--- a/
tests/lib-build-modes
+++ b/
tests/lib-build-modes
@@
-20,8
+20,6
@@
exec git "$@"
END
chmod +x $tmp/stunt-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
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"
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
bm-compute-expected
@@
-140,8
+141,6
@@
bm-run-one () {
$bm_quirk_before_diff
[ $actual_status = failure ] || diff -U10 $bmexp $bmgot
$bm_quirk_before_diff
[ $actual_status = failure ] || diff -U10 $bmexp $bmgot
-
- counter=$(( $counter + 1 ))
}
bm-act-iterate () {
}
bm-act-iterate () {