aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuenter Knauf <lists@gknw.net>2010-04-13 04:05:43 +0200
committerGuenter Knauf <lists@gknw.net>2010-04-13 04:05:43 +0200
commit9c7a9f83291d3df70bdebee97521fca776bc3119 (patch)
treede08dd2a605c59c35c5c538363e9b4b7d5b569bc
parent6ab2cae55eb261e29982774783d28bb2776a9758 (diff)
added last git commit output for c-ares too.
-rwxr-xr-xtests/testcurl.pl22
1 files changed, 15 insertions, 7 deletions
diff --git a/tests/testcurl.pl b/tests/testcurl.pl
index 5675fa299..8877ac54d 100755
--- a/tests/testcurl.pl
+++ b/tests/testcurl.pl
@@ -382,28 +382,36 @@ if ($git) {
logit "skipping git pull (--nogitpull)";
} else {
my $gitstat = 0;
+ my @commits;
logit "run git pull in curl";
system("git pull 2>&1");
$gitstat += $?;
logit "failed to update from curl git ($?), continue anyway" if ($?);
+ # get the last 5 commits for show (even if no pull was made)
+ @commits=`git log --pretty=oneline --abbrev-commit -5`;
+ logit "The most recent curl git commits:";
+ for (@commits) {
+ chomp ($_);
+ logit " $_";
+ }
if (-d "$CURLDIR/ares/.git") {
chdir "$CURLDIR/ares";
logit "run git pull in ares";
system("git pull 2>&1");
$gitstat += $?;
logit "failed to update from ares git ($?), continue anyway" if ($?);
+ # get the last 5 commits for show (even if no pull was made)
+ @commits=`git log --pretty=oneline --abbrev-commit -5`;
+ logit "The most recent ares git commits:";
+ for (@commits) {
+ chomp ($_);
+ logit " $_";
+ }
chdir $CURLDIR;
}
# Set timestamp to the UTC the git update took place.
$timestamp = scalar(gmtime)." UTC" if (!$gitstat);
}
- # get the last 5 commits for show (even if no pull was made)
- my @commits=`git log --pretty=oneline --abbrev-commit -5`;
- logit "The most recent git commits:";
- for my $l (@commits) {
- chomp ($l);
- logit " $l";
- }
if($nobuildconf) {
logit "told to not run buildconf";