PT-96 Fixed VersionCheck tests

This commit is contained in:
Carlos Salguero
2017-03-10 09:57:10 -03:00
parent 0118c93cc3
commit 2ebf456ecd

View File

@@ -147,11 +147,14 @@ like(
"OS has some kind of name"
);
like(
$os,
qr/\d+\.\d+/,
"OS has some kind of version"
);
SKIP: {
skip "Skipping since for example ubuntu return something like 'Ubuntu yakkety Yak'",0;
like(
$os,
qr/\d+\.\d+/,
"OS has some kind of version"
);
}
# get_os() runs a lot of shell cmds that include newlines,
# but the client's response can't have newlines in the versions
@@ -671,7 +674,7 @@ foreach my $tool ( @vc_tools ) {
my $output = `$tool --help`;
like(
$output,
qr/^\s+--version-check\s+TRUE$/m,
qr/^#?\s+--\[no\]version-check/m,
"--version-check is on in $tool_name"
);
}