From 302507d5dce5afb93363b42b2aff940297644e1f Mon Sep 17 00:00:00 2001 From: Ben Greear Date: Sun, 28 Mar 2010 07:50:07 +0200 Subject: Allow running ./tests/testcurl.pl from within git repo. My first instinct was to run the test script within the checked out repository. This small change to the script allows that to work as expected. Signed-off-by: Ben Greear --- tests/testcurl.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/testcurl.pl') diff --git a/tests/testcurl.pl b/tests/testcurl.pl index b48c2842e..c55dcaeef 100755 --- a/tests/testcurl.pl +++ b/tests/testcurl.pl @@ -78,6 +78,10 @@ $fixed=0; # Determine if we're running from git or a canned copy of curl, # or if we got a specific target option or setup file option. $CURLDIR="curl"; +if (-f ".git/config") { + $CURLDIR = "./"; +} + $git=1; $setupfile = 'setup'; while ($ARGV[0]) { -- cgit v1.2.3