summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbertagaz <bertagaz@ptitcanardnoir.org>2018-11-08 16:29:27 +0100
committerbertagaz <bertagaz@ptitcanardnoir.org>2018-11-08 16:29:27 +0100
commitda17cf9bf8def687e191b736017023e7a72c65e4 (patch)
tree2f390fe50baed306af6628c7aeb9e8236e15c4a2
parentd9df8febcc90d2b8833f37dab5c8c60becff922b (diff)
Test suite: run dpkg --compare-versions on the host.
Refs: #14596
-rw-r--r--features/step_definitions/apt.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/step_definitions/apt.rb b/features/step_definitions/apt.rb
index 9f13eed..69b20c9 100644
--- a/features/step_definitions/apt.rb
+++ b/features/step_definitions/apt.rb
@@ -104,7 +104,7 @@ When /^the package "([^"]*)" installed version is( newer than)? "([^"]*)"( after
end
current_version = $vm.execute("dpkg-query -W -f='${Version}' #{package}").stdout
if newer_than
- $vm.execute_successfully("dpkg --compare-versions #{version} lt #{current_version}")
+ cmd_helper("dpkg --compare-versions '#{version}' lt '#{current_version}'")
else
assert_equal(current_version, version)
end