Skip to content
Snippets Groups Projects
Commit c1e87441 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

testcurl: skip reading the setup file if given enough cmdline info

This makes it much easier to run multiple tests in the same directory,
just altering the command lines used.
parent 700843d6
No related branches found
No related tags found
No related merge requests found
......@@ -258,7 +258,13 @@ sub get_host_triplet {
return $triplet;
}
if (open(F, "$setupfile")) {
if($name && $email && $desc) {
# having these fields set are enough to continue, skip reading the setup
# file
$infixed=4;
$fixed=4;
}
elsif (open(F, "$setupfile")) {
while (<F>) {
if (/(\w+)=(.*)/) {
eval "\$$1=$2;";
......@@ -266,7 +272,8 @@ if (open(F, "$setupfile")) {
}
close(F);
$infixed=$fixed;
} else {
}
else {
$infixed=0; # so that "additional args to configure" works properly first time...
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment