aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sasl/test
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2014-05-05 11:18:02 +0200
committerSiri Hansen <[email protected]>2014-05-05 11:18:02 +0200
commit74e9bb75f2e1014cf46b58d6696eb70eb3e7b201 (patch)
tree2c5126694d75bc4bfb228bfebe8be0a8f433553d /lib/sasl/test
parent5e1cfb2f2a296778c400c4afd47571bceb86d4ca (diff)
downloadotp-74e9bb75f2e1014cf46b58d6696eb70eb3e7b201.tar.gz
otp-74e9bb75f2e1014cf46b58d6696eb70eb3e7b201.tar.bz2
otp-74e9bb75f2e1014cf46b58d6696eb70eb3e7b201.zip
Fix regexp in release_handler test so versions are correctly replaced
In order to fake an earlier release to upgrade from, version numbers are replaced in some .app files. This commit adds a backslash before the dot in the pattern to replace, so the dot is not mistaken for a wildcard.
Diffstat (limited to 'lib/sasl/test')
-rw-r--r--lib/sasl/test/release_handler_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sasl/test/release_handler_SUITE.erl b/lib/sasl/test/release_handler_SUITE.erl
index 8a635796b7..bd7414fbb4 100644
--- a/lib/sasl/test/release_handler_SUITE.erl
+++ b/lib/sasl/test/release_handler_SUITE.erl
@@ -2292,8 +2292,8 @@ create_p1g(Conf,TargetDir) ->
ok.
fix_version(SystemLib,App) ->
- FromVsn = vsn(App,current),
- ToVsn = vsn(App,old),
+ FromVsn = re:replace(vsn(App,current),"\\.","\\\\.",[{return,binary}]),
+ ToVsn = re:replace(vsn(App,old),"\\.","\\\\.",[{return,binary}]),
Rootname = filename:join([SystemLib,app_dir(App,old),ebin,atom_to_list(App)]),
AppFile = Rootname ++ ".app",