Skip to content

Commit

Permalink
tests: Take only one of the installed versions for comparison.
Browse files Browse the repository at this point in the history
Addressing:
version=2.7.62.7.6 on multilib systems
  • Loading branch information
isimluk committed Apr 28, 2014
1 parent 38f2ea7 commit 56ef44b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/API/XCCDF/unittests/test_unfinished.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -o pipefail

if [ -f /bin/rpm ] && /bin/rpm -q libxml2; then
# workaround trac#346: skip this test
version="`/bin/rpm -q --qf %{VERSION} libxml2`";
version="`/bin/rpm -q --qf '%{VERSION}\n' libxml2 | tail -n 1`";
if echo $version | \
awk -F. '{print ($1 == 2 && ($2 < 7 || ($2 == 7 && $3 < 7))) ? "true" : "false"}' | \
grep true; then
Expand Down

0 comments on commit 56ef44b

Please sign in to comment.