[open-ils-commits] ***SPAM*** [GIT] Evergreen ILS branch master updated. 6c16a446894d47776ec336115c096b165ffe4b6a

Evergreen Git git at git.evergreen-ils.org
Wed Feb 19 11:28:16 EST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  6c16a446894d47776ec336115c096b165ffe4b6a (commit)
      from  4be795262dc199453a4e632f19d8a5f8aa94d01c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6c16a446894d47776ec336115c096b165ffe4b6a
Author: Bill Erickson <berick at esilibrary.com>
Date:   Wed Feb 19 10:22:37 2014 -0500

    LP#1262722 Fix DB supersedes/deprecates pgtap test
    
    Sort multi-value arrays before passing them off to pgtap for test
    comparison. Otherwise, pgtap tests may fail with:
    
    Failed test 5
            have: {AAAC,AAAB}
            want: {AAAB,AAAC}
    
    Signed-off-by: Bill Erickson <berick at esilibrary.com>
    Signed-off-by: Jeff Godin <jgodin at tadl.org>

diff --git a/Open-ILS/src/sql/Pg/t/db_patch_dep_checks.pg b/Open-ILS/src/sql/Pg/t/db_patch_dep_checks.pg
index 57c5085..19ce243 100644
--- a/Open-ILS/src/sql/Pg/t/db_patch_dep_checks.pg
+++ b/Open-ILS/src/sql/Pg/t/db_patch_dep_checks.pg
@@ -29,7 +29,14 @@ SELECT is(
 
 -- AAAF deprecates AAAB, AAAC
 SELECT is(
-    (SELECT ARRAY_AGG(patch) FROM evergreen.upgrade_list_applied_deprecates('AAAF')),
+    (   SELECT ARRAY_AGG(patch)
+        FROM (
+            -- sort the patches to match the expected output
+            SELECT patch
+            FROM evergreen.upgrade_list_applied_deprecates('AAAF')
+            ORDER BY patch
+        ) AS patch
+    ),
     '{AAAB,AAAC}'
 );
 

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/sql/Pg/t/db_patch_dep_checks.pg |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list