diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-01-30 17:57:36 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-01-30 17:57:36 +0000 |
| commit | c9e7699c2e98eb9622a6dfca2be1442aeb51dfd3 (patch) | |
| tree | 2d192278bfb9a69eaad58e46cd88f8490e90d25b /test/util | |
| parent | add6e5d11d9057d027365237adcada0767fb2017 (diff) | |
| download | puppet-c9e7699c2e98eb9622a6dfca2be1442aeb51dfd3.tar.gz puppet-c9e7699c2e98eb9622a6dfca2be1442aeb51dfd3.tar.xz puppet-c9e7699c2e98eb9622a6dfca2be1442aeb51dfd3.zip | |
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
Diffstat (limited to 'test/util')
| -rwxr-xr-x | test/util/package.rb | 2 | ||||
| -rwxr-xr-x[-rw-r--r--] | test/util/pidlock.rb | 0 |
2 files changed, 1 insertions, 1 deletions
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 index 671668d01..671668d01 100644..100755 --- a/test/util/pidlock.rb +++ b/test/util/pidlock.rb |
