Skip to content

Commit

Permalink
perf: emit progress output when unpacking & building
Browse files Browse the repository at this point in the history
Amend the t/perf/run output so that in addition to the "Running N
tests" heading currently being emitted, it also emits "Unpacking $rev"
and "Building $rev" when setting up the build/$rev directory & when
building it, respectively.

This makes it easier to see what's going on and what revision is being
tested as the output scrolls by.

Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
avar authored and gitster committed May 20, 2017
1 parent 88b6197 commit b11ad02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/perf/run
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ run_one_dir () {

unpack_git_rev () {
rev=$1
echo "=== Unpacking $rev in build/$rev ==="
mkdir -p build/$rev
(cd "$(git rev-parse --show-cdup)" && git archive --format=tar $rev) |
(cd build/$rev && tar x)
Expand All @@ -37,6 +38,7 @@ build_git_rev () {
cp "../../$config" "build/$rev/"
fi
done
echo "=== Building $rev ==="
(
cd build/$rev &&
if test -n "$GIT_PERF_MAKE_COMMAND"
Expand Down

0 comments on commit b11ad02

Please sign in to comment.