Description: Skip open_de9b3fb438 s390x to avoid OOM
 The load of the current file in test_open_head is fine, but
 open_de9b3fb438 goes into an OOM even in huge (e.g. 10GB) systemd.
 This probably needs a proper fix by upstream in regard to the migration
 modules that load the old code, but until then (since the rest works on s390x)
 this unblocks the package self-test in Debian & Ubuntu.
Forwarded: no
X-Not-Forwarded-Reason: Unclear where/how exactly
Author: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Origin: <todo-URL-to-git or similar>
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/freecad/+bug/1918474
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=984952
Last-Update: 2021-03-15

--- a/src/Mod/Fem/femtest/app/test_open.py
+++ b/src/Mod/Fem/femtest/app/test_open.py
@@ -25,6 +25,7 @@
 __author__ = "Bernd Hahnebach"
 __url__ = "https://www.freecadweb.org"
 
+import platform
 import sys
 import tempfile
 import unittest
@@ -133,6 +134,10 @@
         if sys.version_info.major < 3:
             return
 
+        # migration modules fail on s390x (big endian) and trigger OOMs (LP: #1918474)
+        if platform.machine() == "s390x":
+            return
+
         # the number in method name is the FreeCAD commit the document was created with
         # https://github.com/FreeCAD/FreeCAD/commit/de9b3fb438
         # the document was created by running the object create unit test
