Skip to content
Snippets Groups Projects
Commit 617f3028 authored by Arseny Kapoulkine's avatar Arseny Kapoulkine
Browse files

tests: Use Git instead of Subversion in autotest

parent 8e95f0d8
No related branches found
No related tags found
No related merge requests found
......@@ -65,8 +65,8 @@ if ($fast)
print "### autotest begin " . scalar localtime() . "\n";
# print SVN revision info
print "### autotest revision $1\n" if (`svn info` =~ /Revision:\s+(\d+)/);
# print Git revision info
print "### autotest revision $1\n" if (`git rev-parse HEAD` =~ /(.+)/);
# get CPU info
$cpucount = &getcpucount();
......
......@@ -32,6 +32,6 @@ exit unless $client;
select $client;
&execprint('svn up') == 0 || die "error updating from repo\n";
&execprint('git pull') == 0 || die "error updating from repo\n";
&execprint('perl tests/autotest-local.pl') == 0 || die "error launching tests\n";
system($exitcmd);
......@@ -128,7 +128,7 @@ while (<>)
$defines{$_} = 1 foreach (split /,/, $defineset);
&insertindex(\%configurations, $fullconf);
}
elsif (/^### autotest revision (\d+)/)
elsif (/^### autotest revision (.+)/)
{
if (defined $revision && $revision != $1)
{
......@@ -224,6 +224,6 @@ $date = localtime;
print <<END;
</table><br>
Generated on $date from Subversion r$revision
Generated on $date from Git $revision
</body></html>
END
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