From 200fbe333450815306dc1407ee809733d9adfc05 Mon Sep 17 00:00:00 2001 From: Federico Hernandez Date: Tue, 18 Jan 2011 02:37:06 +0100 Subject: [PATCH] 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. --- test/hook.post-start.t | 2 +- test/hook.pre-exit.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/hook.post-start.t b/test/hook.post-start.t index 0b56ffaf1..d425e3158 100755 --- a/test/hook.post-start.t +++ b/test/hook.post-start.t @@ -52,7 +52,7 @@ if ($output =~ /PUC-Rio/) { # Test the hook. $output = qx{../src/task rc:hook.rc _version}; - like ($output, qr/^marker.+\n\d\.\d+\.\d+/ms, 'Found marker before output'); + like ($output, qr/^marker.+\n\w{7}/ms, 'Found marker before output'); } else { diff --git a/test/hook.pre-exit.t b/test/hook.pre-exit.t index f74f5f93f..67796e89b 100755 --- a/test/hook.pre-exit.t +++ b/test/hook.pre-exit.t @@ -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 {