[Bps-public-commit] Prophet branch, master, updated. 5a87609c1afc3a11aebeb0b664817a7963890b61
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Tue Jul 21 01:54:56 EDT 2009
The branch, master has been updated
via 5a87609c1afc3a11aebeb0b664817a7963890b61 (commit)
from 2bcfa92f20f93d7f7dc4ce595ea8aee10d7920e8 (commit)
Summary of changes:
t/publish-pull.t | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
- Log -----------------------------------------------------------------
commit 5a87609c1afc3a11aebeb0b664817a7963890b61
Author: sunnavy <sunnavy at bestpractical.com>
Date: Tue Jul 21 13:46:53 2009 +0800
quotemeta some vars, mostly because tmp path has "++" str on mac
diff --git a/t/publish-pull.t b/t/publish-pull.t
index c44ef1b..27c92ad 100644
--- a/t/publish-pull.t
+++ b/t/publish-pull.t
@@ -45,14 +45,14 @@ as_alice {
config-format-version = \d+
\[replica "(.*?)"\]
uuid = $Prophet::CLIContext::ID_REGEX
- publish-url = $alice_published
+ publish-url = \Q$alice_published\E
/, 'publish-url variable created correctly in config');
$config_contents =~ /\[replica "(.*?)"\]/;
my $replica_name = $1;
# change name in config
my $new_config_contents = $config_contents;
- $new_config_contents =~ s/$replica_name/new-name/;
+ $new_config_contents =~ s/\Q$replica_name\E/new-name/;
Prophet::Util->write_file(
file => $ENV{PROPHET_APP_CONFIG},
content => $new_config_contents,
@@ -69,7 +69,7 @@ as_alice {
config-format-version = \d+
\[replica "new-name"\]
uuid = $Prophet::CLIContext::ID_REGEX
- publish-url = $new_published
+ publish-url = \Q$new_published\E
/, 'publish-url variable created correctly in config');
# check to make sure that publish doesn't fall back to using
@@ -103,8 +103,8 @@ as_bob {
like($config_contents, qr|
\[core\]
config-format-version = \d+
-\[replica "file://$path"\]
- url = file://$path
+\[replica "file://\Q$path\E"\]
+ url = file://\Q$path\E
uuid = $Prophet::CLIContext::ID_REGEX
|, 'replica section created in config file after clone');
@@ -130,7 +130,7 @@ as_bob {
$config_contents =~ /\[replica "(.*?)"\]/;
my $replica_name = $1;
my $new_config_contents = $config_contents;
- $new_config_contents =~ s/$replica_name/new-name/;
+ $new_config_contents =~ s/\Q$replica_name\E/new-name/;
Prophet::Util->write_file(
file => $ENV{PROPHET_APP_CONFIG},
content => $new_config_contents,
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list