Add tests for "git describe --long".
* Move test logic to scm-update.sh scripts. * Check for "git describe --long".
This commit is contained in:
@ -75,11 +75,12 @@ sub runBuild {
|
||||
}
|
||||
|
||||
sub updateRepository {
|
||||
my ($scm, $update, $repo) = @_;
|
||||
my ($res, $stdout, $stderr) = captureStdoutStderr(60, ($update, $repo));
|
||||
my ($scm, $update) = @_;
|
||||
my ($res, $stdout, $stderr) = captureStdoutStderr(60, ($update, $scm));
|
||||
die "Unexpected update error with $scm: $stderr\n" unless $res;
|
||||
print STDOUT "Update $scm repository: $stdout" if $stdout ne "";
|
||||
return $stdout ne "";
|
||||
my ($message, $loop, $status) = $stdout =~ m/::(.*) -- (.*) -- (.*)::/;
|
||||
print STDOUT "Update $scm repository: $message\n";
|
||||
return ($loop eq "continue", $status eq "updated");
|
||||
}
|
||||
|
||||
1;
|
||||
|
Reference in New Issue
Block a user