summaryrefslogtreecommitdiff
path: root/tests/testcurl.pl
diff options
context:
space:
mode:
authorGuenter Knauf <lists@gknw.net>2010-04-13 22:55:33 +0200
committerGuenter Knauf <lists@gknw.net>2010-04-13 22:55:33 +0200
commit92b387f57aa1e795c902ed568092158b527a7b1b (patch)
tree71a127e9c2b9297ef4d082c8d193dc60d6f90112 /tests/testcurl.pl
parent6432fafa1a5d75ce7fc3dee9602c0890af538ebe (diff)
downloadcurl-92b387f57aa1e795c902ed568092158b527a7b1b.tar.gz
Use correct directory for c-ares git pull
Signed-off-by: Tor Arntsen <tor@spacetec.no>
Diffstat (limited to 'tests/testcurl.pl')
-rwxr-xr-xtests/testcurl.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testcurl.pl b/tests/testcurl.pl
index 8877ac54d..d44c3b135 100755
--- a/tests/testcurl.pl
+++ b/tests/testcurl.pl
@@ -394,8 +394,8 @@ if ($git) {
chomp ($_);
logit " $_";
}
- if (-d "$CURLDIR/ares/.git") {
- chdir "$CURLDIR/ares";
+ if (-d "ares/.git") {
+ chdir "ares";
logit "run git pull in ares";
system("git pull 2>&1");
$gitstat += $?;
@@ -407,7 +407,7 @@ if ($git) {
chomp ($_);
logit " $_";
}
- chdir $CURLDIR;
+ chdir "$pwd/$CURLDIR";
}
# Set timestamp to the UTC the git update took place.
$timestamp = scalar(gmtime)." UTC" if (!$gitstat);