Skip to content

Commit

Permalink
[ci] fixed version compare in 0070-check_recommended_services.ts
Browse files Browse the repository at this point in the history
changed version compare from ">" to Build::Rpm::verscmp to avoid wrong check
calculation.

2.8 < 2.9  = true
2.8 < 2.10 = false (becomes "2.8 < 2.1" mathematical)
  • Loading branch information
M0ses authored and coolo committed Nov 14, 2018
1 parent 5d847e3 commit 5b696f8
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions dist/t/0070-check_recommended_services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,26 @@

use strict;
use warnings;
use Test::More;
use FindBin;
use lib "$FindBin::Bin/lib";

BEGIN {
unshift @::INC,
"$FindBin::Bin/lib",
"$FindBin::Bin/../../src/backend/build",
"/usr/lib/build"
;
}

use OBS::Test::Utils;
use Test::More;
use Build::Rpm;

my $test_count = 6;
my $max_wait = 300;

my @daemons = qw/obsdodup obssigner obsdeltastore/;
my $pkg_ver = OBS::Test::Utils::get_package_version('obs-server', 2);

if ( $pkg_ver > 2.8) {
if ( Build::Rpm::verscmp($pkg_ver, "2.8.99") > 0) {
$test_count = 8;
push (@daemons, 'obsservicedispatch');
}
Expand Down

0 comments on commit 5b696f8

Please sign in to comment.