[svk-commit] r2674 - branches/mirror-boostrap/t/mirror
nobody at bestpractical.com
nobody at bestpractical.com
Sun Jan 13 22:36:05 EST 2008
Author: clsung
Date: Sun Jan 13 22:36:04 2008
New Revision: 2674
Modified:
branches/mirror-boostrap/t/mirror/sync-bootstrap.t
Log:
- catch if the dump file is not exist.
Modified: branches/mirror-boostrap/t/mirror/sync-bootstrap.t
==============================================================================
--- branches/mirror-boostrap/t/mirror/sync-bootstrap.t (original)
+++ branches/mirror-boostrap/t/mirror/sync-bootstrap.t Sun Jan 13 22:36:04 2008
@@ -3,7 +3,7 @@
use Test::More;
use SVK::Test;
eval { require SVN::Mirror; 1 } or plan skip_all => 'require SVN::Mirror';
-plan tests => 7;
+plan tests => 8;
my ($xd, $svk) = build_test('test', 'm2', 'm3');
@@ -46,6 +46,10 @@
# now try with mirror, sync in single bootstrap command
+# try feed with incorrect file
+is_output($svk, mirror => ['--bootstrap=./no-such-file', '/m3/m', $uri],
+ ["No such dump file: ./no-such-file."]);
+# this is real test
is_output($svk, mirror => ['--bootstrap='.$dump, '/m3/m', $uri],
["Mirror initialized.",
"Mirror path '/m3/m' synced from dumpfile."]);
More information about the svk-commit
mailing list