[Bps-public-commit] r14388 - in Shipwright/trunk: t

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Jul 22 13:43:14 EDT 2008


Author: sunnavy
Date: Tue Jul 22 13:43:09 2008
New Revision: 14388

Modified:
   Shipwright/trunk/   (props changed)
   Shipwright/trunk/t/71.script_cmds.t

Log:
 r14847 at sunnavys-mb:  sunnavy | 2008-07-23 01:40:43 +0800
 updated test


Modified: Shipwright/trunk/t/71.script_cmds.t
==============================================================================
--- Shipwright/trunk/t/71.script_cmds.t	(original)
+++ Shipwright/trunk/t/71.script_cmds.t	Tue Jul 22 13:43:09 2008
@@ -18,6 +18,7 @@
       unless has_svn();
 
     my $repo = 'svn:' . create_svn_repo() . '/hello';
+    warn $repo, "\n";
 
     my $source = create_svn_repo() . '/foo';    # svn source we'll import
 
@@ -270,15 +271,15 @@
                 [ 'list', 'foo' ],
                 $update_cmd
                 ? qr/version:\s+1\s+/
-                : qr/version:\s+45\s+/m,    # magic number, got it from practice
+                : qr/version:\s+49\s+/m, # the magic number is from practice ;)
                 'list foo, version seems ok',
             ],
             $update_cmd,    # if the source dist is svk, $update_cmd is undef
             [
                 [ 'list', 'foo', '--with-latest-version' ],
                 $update_cmd
-                ? qr/latest_version:\s+2\s+/
-                : qr/latest_version:\s+52\s+/,    # magic number
+                ? qr/latest_version:\s+([^1]|\d{2,})\s+/
+                : qr/latest_version:\s+(?!49)\d+\s+/,
                 'list foo, latest version seems ok',
             ],
 
@@ -287,9 +288,9 @@
             [
                 [ 'list', 'foo' ],
                 $update_cmd
-                ? qr/version:\s+2\s+/
-                : qr/version:\s+52\s+/,
-                'list foo, latest version seems ok',
+                ? qr/version:\s+([^1]|\d{2,})\s+/
+                : qr/version:\s+(?!49)\d+\s+/,
+                'list foo, update cmd seems ok',
             ],
           )
         : (),



More information about the Bps-public-commit mailing list