projects
/
check_postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdd968d
)
Fix regex for cp_version testing.
author
Greg Sabino Mullane
<
[email protected]
>
Sun, 22 Sep 2013 18:53:40 +0000
(14:53 -0400)
committer
Greg Sabino Mullane
<
[email protected]
>
Sun, 22 Sep 2013 18:53:40 +0000
(14:53 -0400)
t/02_new_version_cp.t
patch
|
blob
|
blame
|
history
diff --git
a/t/02_new_version_cp.t
b/t/02_new_version_cp.t
index 8e71801659ee02be065b886d7880d43383fa5d85..3d00afc486a20658260df4a726f09743b5f275f9 100644
(file)
--- a/
t/02_new_version_cp.t
+++ b/
t/02_new_version_cp.t
@@
-32,7
+32,7
@@
$t=qq{$S returns warning for mismatched major version};
$cp->fake_self_version('1.2.3');
$info = $cp->run('');
like ($info, qr{$label WARNING: Please upgrade to version \d+\.\d+\.\d+ of check_postgres. You are running 1.2.3}, $t);
-$info =~ /((\d+\.\d+
\.)
(\d+))/ or die "Invalid version!?\n";
+$info =~ /((\d+\.\d+
)\.
(\d+))/ or die "Invalid version!?\n";
my ($current_version,$cmaj,$crev) = ($1,$2,$3);
$t=qq{$S returns okay for matching version};