This is an automated email from the git hooks/post-receive script.

a_valentino-guest pushed a commit to branch master
in repository mipp.

commit efb22a0f070e5e7f86d66e340a5b0911f250f02b
Author: Antonio Valentino <antonio.valent...@tiscali.it>
Date:   Sat Nov 15 16:59:39 2014 +0000

    Fix test issue on i386
---
 debian/changelog                                 |  1 +
 debian/patches/0003-Fix-test-issue-on-i386.patch | 30 ++++++++++++++++++++++++
 debian/patches/series                            |  1 +
 3 files changed, 32 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 544f7ad..9586150 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 mipp (0.9.1-2) UNRELEASED; urgency=medium
 
   * Fix missing dependency in debian/tests/control
+  * New patch: fix test issue on i386 (packport from upstream)
 
  -- Antonio Valentino <antonio.valent...@tiscali.it>  Tue, 23 Sep 2014 
22:39:33 +0200
 
diff --git a/debian/patches/0003-Fix-test-issue-on-i386.patch 
b/debian/patches/0003-Fix-test-issue-on-i386.patch
new file mode 100644
index 0000000..072fea0
--- /dev/null
+++ b/debian/patches/0003-Fix-test-issue-on-i386.patch
@@ -0,0 +1,30 @@
+From: Antonio Valentino <antonio.valent...@tiscali.it>
+Date: Sat, 15 Nov 2014 17:55:37 +0100
+Subject: Fix test issue on i386
+
+---
+ tests/test_xrit.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tests/test_xrit.py b/tests/test_xrit.py
+index b4f052a..eb355d9 100644
+--- a/tests/test_xrit.py
++++ b/tests/test_xrit.py
+@@ -99,7 +99,7 @@ class Test(unittest.TestCase):
+         make_image(mda, img)
+         self.assertTrue(compare_mda(mda, mdac), msg='GOES metadata differ')
+         self.assertTrue(img.shape == (200, 200), msg='GOES image 
reading/slicing failed, wrong shape')
+-        self.failUnlessAlmostEqual(cross_sum, goes_sum, 3,
++        self.failUnlessAlmostEqual(int(round(cross_sum/200.)), 
int(round(goes_sum/200.)), 3,
+                                    msg='GOES image reading/slicing failed, 
wrong cross_sum (%.3f != %.3f)'%(
+                 cross_sum, goes_sum))
+ 
+@@ -114,7 +114,7 @@ class Test(unittest.TestCase):
+         make_image(mda, img)
+         self.assertTrue(compare_mda(mda, mdac), msg='MTSAT metadata differ')
+         self.assertTrue(img.shape == (200, 200), msg='MTSAT image 
reading/slicing failed, wrong shape')
+-        self.failUnlessAlmostEqual(cross_sum, mtsat_sum, 3,
++        self.failUnlessAlmostEqual(int(round(cross_sum/100.)), 
int(round(mtsat_sum/100.)), 3,
+                                    msg='MTSAT image reading/slicing failed, 
wrong cross_sum (%.3f != %.3f)'%(
+                 cross_sum, mtsat_sum))
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 9c8f208..2bc3912 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001-skip-tsx-metadata-test.patch
 0002-fix-build-path-management.patch
+0003-Fix-test-issue-on-i386.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-grass/mipp.git

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to