diff --git a/bats/foreman_helper.bash b/bats/foreman_helper.bash index e804c3bf0..0d762d75f 100644 --- a/bats/foreman_helper.bash +++ b/bats/foreman_helper.bash @@ -29,7 +29,12 @@ tSkipIfNoPulp2() { } tSkipIfHammerBelow018() { - RPM_VERSION=$(rpm -q --queryformat '%{VERSION}' tfm-rubygem-hammer_cli) + if tPackageExists tfm-rubygem-hammer_cli; then + RPM_PACKAGE=tfm-rubygem-hammer_cli + else + RPM_PACKAGE=rubygem-hammer_cli + fi + RPM_VERSION=$(rpm -q --queryformat '%{VERSION}' ${RPM_PACKAGE}) run rpmdev-vercmp $RPM_VERSION 0.18 > /dev/null if [[ $status == 12 ]]; then