From c9e7699c2e98eb9622a6dfca2be1442aeb51dfd3 Mon Sep 17 00:00:00 2001 From: luke Date: Tue, 30 Jan 2007 17:57:36 +0000 Subject: Fixing #462. The package sort order was always resulting in the lowest-version package being first, rather than highest, so I inverted the sort order. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2125 980ebf18-57e1-0310-9a29-db15c13687c0 --- test/util/package.rb | 2 +- test/util/pidlock.rb | 0 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 test/util/pidlock.rb (limited to 'test/util') diff --git a/test/util/package.rb b/test/util/package.rb index 73b069f84..22bc4c4e4 100755 --- a/test/util/package.rb +++ b/test/util/package.rb @@ -20,7 +20,7 @@ class TestPuppetUtilPackage < Test::Unit::TestCase versioncmp(a,b) } end - assert_equal(["0002", "1", "1.06", "1.1-3", "1.1-4", "1.1-5", "1.1.6", "1.1.a", "1.1a", "1.2", "1.5", "2.3", "2.3.0", "2.3.1", "2.3a.1", "2.4", "2.4", "2.4b", "2.40.2", "3.0", "3.1"], newary) + assert_equal(["3.1", "3.0", "2.40.2", "2.4b", "2.4", "2.4", "2.3a.1", "2.3.1", "2.3.0", "2.3", "1.5", "1.2", "1.1a", "1.1.a", "1.1.6", "1.1-5", "1.1-4", "1.1-3", "1.06", "1", "0002"], newary, "versions did not sort correctly") end end diff --git a/test/util/pidlock.rb b/test/util/pidlock.rb old mode 100644 new mode 100755 -- cgit