Fixed broken unit tests that use _version

- _verstion now outputs the short git sha1 id and not longer the
  task version when building from the git repository.
This commit is contained in:
Federico Hernandez 2011-01-18 02:37:06 +01:00
parent 0cac03ad4a
commit 200fbe3334
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ if ($output =~ /PUC-Rio/)
{
# Test the hook.
$output = qx{../src/task rc:hook.rc _version};
like ($output, qr/\n\d\.\d+\.\d+/ms, 'Found marker after output');
like ($output, qr/\n\w{7}/ms, 'Found marker after output');
}
else
{